Files
HKSingleParty/99_references/dbml_examples/simple_order.dbml
2025-05-28 09:55:51 +08:00

14 lines
444 B
Plaintext

Table "[dbo].[Order]"{
"id" uniqueidentifier [not null, pk]
"client_fullname" nvarchar(261) [not null, Note: '''
This is the fullname of the client.
It should concatenate first and last names.
''']
}
Table "[dbo].[OrderItem]"{
"id" uniqueidentifier [not null, pk]
"order_id" int [not null, pk]
}
Ref fk_order_item_to_order: "[dbo].[OrderItem]".(order_id) > "[dbo].[Order]".(id)[delete: Cascade, update: Cascade]