-
Notifications
You must be signed in to change notification settings - Fork 0
Database Schema
Andrew Murray edited this page Feb 6, 2022
·
9 revisions
| column name | data type | details |
|---|---|---|
| id | integer | not null, primary key |
| username | varchar | not null, unique |
| varchar | not null, unique | |
| hashedPassword | varchar | not null |
| createdAt | timestamp | not null |
| updatedAt | timestamp | not null |
| column name | data type | details |
|---|---|---|
| id | integer | not null, primary key |
| name | varchar | |
| content | text | |
| userId | integer | not null, foreign key |
| notebookId | integer | foreign key |
| createdAt | timestamp | not null |
| updatedAt | timestamp | not null |
| column name | data type | details |
|---|---|---|
| id | integer | not null, primary key |
| title | varchar | not null |
| userId | integer | not null, foreign key |
| createdAt | timestamp | not null |
| updatedAt | timestamp | not null |
| column name | data type | details |
|---|---|---|
| id | integer | not null, primary key |
| name | varchar | not null |
| userId | integer | not null, foreign key |
| createdAt | timestamp | not null |
| updatedAt | timestamp | not null |
| column name | data type | details |
|---|---|---|
| id | integer | not null, primary key |
| noteId | integer | not null, foreign key |
| tagId | integer | not null, foreign key |
| createdAt | timestamp | not null |
| updatedAt | timestamp | not null |
