mirror of
https://github.com/ilyakooo0/reshape.git
synced 2024-11-22 01:09:15 +03:00
Updated readme
This commit is contained in:
parent
cc4f96de25
commit
fdcf269d16
@ -224,6 +224,8 @@ primary_key = ["id"]
|
||||
columns = ["user_id"]
|
||||
referenced_table = "users"
|
||||
referenced_columns = ["id"]
|
||||
on_update = "restrict"
|
||||
on_delete = "restrict"
|
||||
```
|
||||
|
||||
_Example: create `profiles` table based on existing `users` table_
|
||||
@ -289,6 +291,8 @@ table = "items"
|
||||
columns = ["user_id"]
|
||||
referenced_table = "users"
|
||||
referenced_columns = ["id"]
|
||||
on_update = "restrict"
|
||||
on_delete = "restrict"
|
||||
```
|
||||
|
||||
#### Remove foreign key
|
||||
|
Loading…
Reference in New Issue
Block a user