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

20 lines
387 B
Plaintext

Project simplebank {
database_type: 'PostgreSQL'
Note: '''
# Simple Bank Database
'''
}
Table accounts as A {
id bigserial [pk]
owner varchar [not null]
balance bigint [not null]
currency varchar [not null]
Indexes {
owner
// to make it so an owner can only have different accounts with different currency
(owner, currency) [unique]
}
}