# membership/membership.db

SQL database schema boilerplate for user accounts, roles and authentication tokens for use in web apps (PostgreSQL, Microsoft SQL Server, Azure SQL Database, LocalDb, SQLite)

Repository: https://github.com/membership/membership.db
Canonical: https://ross.abutalabs.com/products/membershipdb
License: MIT
License Family: permissive
Last push: 2016-12-24T18:11:19+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3846, "days_push": 3539, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1021, forks 82 (observed 2026-08-28T04:03:15.661555+00:00)

## What it is
A SQL database schema boilerplate for storing user accounts, roles, and authentication tokens/claims in web applications. It provides ready-made schema definitions for PostgreSQL, SQL Server, Azure SQL Database, LocalDb, and SQLite.

## Use cases
- bootstrap a user accounts table for a new web app
- add roles and permissions tables to a database
- store authentication tokens and claims in SQL
- start a membership system without designing schema from scratch
- use a consistent auth schema across PostgreSQL and SQLite

## When to choose
- starting a new web application that needs user accounts and roles
- wanting a battle-tested, MIT-licensed schema instead of hand-rolling one
- targeting PostgreSQL, SQL Server, or SQLite

## When to avoid
- using a NoSQL database
- needing runtime authentication logic rather than just schema
- requiring an actively maintained project with recent updates

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: database, auth, boilerplate
- domain: databases, web-development, security, developer-tools
- platform: cross-platform, self-hosted
- tags: sql-schema, user-accounts, roles, authentication-tokens, postgresql, sql-server, sqlite, boilerplate

## Member repositories
- membership/membership.db (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:15.661555+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:33:50.481726+00:00, confidence not recorded.
  - readme: https://github.com/membership/membership.db (fetched 2026-08-28T04:03:15.661555+00:00, sha fe6b83e7e745)
- Data as of 2026-08-30T08:39:29.467469+00:00.
