-
Notifications
You must be signed in to change notification settings - Fork 0
DB SCHEMA
zach-gold edited this page Jun 26, 2024
·
4 revisions

| column name | data type | details |
|---|---|---|
| id | integer | not null, primary key |
| username | string | not null, |
| string | not null, indexed, unique | |
| password | string | not null |
| created_at | datetime | not null |
| updated_at | datetime | not null |
| column name | data type | details |
|---|---|---|
| id | integer | not null, primary key |
| body | text | not null, |
| title | string | not null, indexed, unique |
| user_id | string | not null, foreign_key |
| created_at | datetime | not null |
| updated_at | datetime | not null |
-
user_idreferencesuserstable
| column name | data type | details |
|---|---|---|
| id | integer | not null, primary key |
| user_id | integer | not null, foreign_key |
| question_id | integer | foreign_key |
| created_at | datetime | not null |
| updated_at | datetime | not null |
-
user_idreferencesuserstable -
question_idreferencesquestionstable
| column name | data type | details |
|---|---|---|
| id | integer | not null, primary key |
| body | text | not null |
| is_primary | boolean | not null |
| user_id | integer | not null, foreign_key |
| question_id | integer | foreign_key |
| created_at | datetime | not null |
| updated_at | datetime | not null |
-
user_idreferencesuserstable -
question_idreferencesquestionstable
| column name | data type | details |
|---|---|---|
| id | integer | not null, primary key |
| question_id | integer | foreign_key |
| tag | string | |
| created_at | datetime | not null |
| updated_at | datetime | not null |
-
question_idreferencesquestionstable