init commit,
This commit is contained in:
16
99_references/dbml_examples/user-posts.dbml
Normal file
16
99_references/dbml_examples/user-posts.dbml
Normal file
@@ -0,0 +1,16 @@
|
||||
Table users {
|
||||
id integer
|
||||
username varchar
|
||||
role varchar
|
||||
created_at timestamp
|
||||
}
|
||||
|
||||
Table posts {
|
||||
id integer [primary key]
|
||||
title varchar
|
||||
body text [note: 'Content of the post']
|
||||
user_id integer
|
||||
created_at timestamp
|
||||
}
|
||||
|
||||
Ref: posts.user_id > users.id // many-to-one
|
Reference in New Issue
Block a user