-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatabase.dbml
38 lines (35 loc) · 1.29 KB
/
database.dbml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Table user {
id serial [not null, primary key]
created_at timestamptz [default: `CURRENT_TIMESTAMP`]
modified_at timestamptz [default: `CURRENT_TIMESTAMP`]
email varchar(255) [not null, unique]
password varchar(1000) [not null]
disabled bool [not null, default: false]
name varchar(255) [not null, default: 'John Doe']
-- The User model, This is the table used to store auth credentials
note: 'The User model, This is the table used to store auth credentials'
}
Table comments {
id serial [not null, primary key]
created_at timestamptz [default: `CURRENT_TIMESTAMP`]
modified_at timestamptz [default: `CURRENT_TIMESTAMP`]
position_id int
url_id int [not null]
comment text [not null]
status bool [not null, default: true]
anchor_text text [not null]
user_id_id int [not null, ref: > user.id, on delete: CASCADE]
}
Table positionaldata {
id serial [not null, primary key]
created_at timestamptz [default: `CURRENT_TIMESTAMP`]
modified_at timestamptz [default: `CURRENT_TIMESTAMP`]
identifier jsonb [not null]
url_id int [not null]
}
Table urls {
id serial [not null, primary key]
created_at timestamptz [default: `CURRENT_TIMESTAMP`]
modified_at timestamptz [default: `CURRENT_TIMESTAMP`]
link text [not null]
}