Schema Library

Popular database schema diagrams

Explore the real database schemas behind popular projects. Every diagram shows tables, columns, primary keys, and foreign key relationships — rendered from official migrations and docs.

Supabase

7 tables

Supabase Database Schema Diagram

* 1 * 1 * 1 users instance_id id PK aud role email encrypted_password email_confirmed_at invited_at confirmation_token confirmation_sent_at recovery_token recovery_sent_at email_change_token_current email_change_token_new email_change email_change_sent_at last_sign_in_at raw_app_meta_data raw_user_meta_data is_super_admin created_at updated_at phone phone_confirmed_at phone_change phone_change_token phone_change_sent_at confirmed_at email_change_confirm_status banned_until reauthentication_token reauthentication_sent_at is_sso_user deleted_at is_anonymous identities provider_id user_id FK identity_data provider last_sign_in_at created_at updated_at email id PK sessions id PK user_id FK created_at updated_at factor_id aal not_after refreshed_at user_agent ip tag refresh_tokens instance_id id PK token user_id FK revoked created_at updated_at parent session_id instances id PK uuid raw_base_config created_at updated_at audit_log_entries instance_id id PK payload created_at ip_address schema_migrations version PK
View schema diagram →

NextAuth.js

4 tables

NextAuth.js Database Schema (Auth.js)

* 1 * 1 users id PK name email emailVerified image accounts id PK userId FK type provider providerAccountId refresh_token access_token expires_at token_type scope id_token session_state sessions id PK sessionToken userId FK expires verification_tokens identifier token expires
View schema diagram →

Laravel

7 tables

Laravel Database Schema Diagram

* 1 users id PK name email email_verified_at password remember_token created_at updated_at password_reset_tokens email PK token created_at sessions id PK user_id FK ip_address user_agent payload last_activity jobs id PK queue payload attempts reserved_at available_at created_at failed_jobs id PK uuid connection queue payload exception failed_at cache key PK value expiration cache_locks key PK owner expiration
View schema diagram →

Django

9 tables

Django Auth Database Schema Diagram

* 1 * 1 * 1 * 1 * 1 * 1 * 1 * 1 * 1 auth_user id PK password last_login is_superuser username first_name last_name email is_staff is_active date_joined auth_group id PK name auth_permission id PK name content_type_id FK codename auth_user_groups id PK user_id FK group_id FK auth_user_user_permissions id PK user_id FK permission_id FK auth_group_permissions id PK group_id FK permission_id FK django_content_type id PK app_label model django_admin_log id PK action_time object_id object_repr action_flag change_message content_type_id FK user_id FK django_session session_key PK session_data expire_date
View schema diagram →