← All schemas
Schema Library

Laravel Database Schema Diagram

A fresh Laravel 11 application ships with a handful of framework tables created by the default migrations: users, password_reset_tokens, sessions, jobs, failed_jobs, cache, and cache_locks. This diagram shows the full default schema — the users table with password and remember_token columns, plus the sessions table that references users via a user_id foreign key.

Tables
7
Core table
users
Framework
Laravel 11
* 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

Tables in the Laravel schema

ColumnTypeNullableKey
users
idbigintNoPK
namevarcharNo
emailvarcharNo
email_verified_attimestampYes
passwordvarcharNo
remember_tokenvarchar(100)Yes
created_attimestampYes
updated_attimestampYes
password_reset_tokens
emailvarcharNoPK
tokenvarcharNo
created_attimestampYes
sessions
idvarcharNoPK
user_idbigintYes
ip_addressvarchar(45)Yes
user_agenttextYes
payloadlongtextNo
last_activityintegerNo
jobs
idbigintNoPK
queuevarcharNo
payloadlongtextNo
attemptstinyintNo
reserved_atintegerYes
available_atintegerNo
created_atintegerNo
failed_jobs
idbigintNoPK
uuidvarcharNo
connectiontextNo
queuetextNo
payloadlongtextNo
exceptionlongtextNo
failed_attimestampNo
cache
keyvarcharNoPK
valuemediumtextNo
expirationintegerNo
cache_locks
keyvarcharNoPK
ownervarcharNo
expirationintegerNo

Frequently asked questions

What tables does a default Laravel installation have?

The default Laravel migrations create users, password_reset_tokens, sessions, jobs, failed_jobs, cache, and cache_locks tables.

Does the Laravel sessions table reference the users table?

Yes. The sessions table has a user_id foreign key column that references users.id, so you can look up which user owns each authenticated session.

Visualize your own database

Paste your PostgreSQL connection string and get an interactive ER diagram of your own schema in under 10 seconds. No signup required.

Try it free →