monolayer-pg / schema / DatabaseSchema
Type Alias: DatabaseSchema<T, S>
DatabaseSchema<
T
,S
>:object
Type Parameters
Type Parameter |
---|
T extends TableRecord |
S extends string |
Type declaration
name?
optional
name:S
Schema name.
Default
ts
"default"
tables?
optional
tables:T
Schema tables.
Default
ts
[]
types?
optional
types:EnumType
<any
>[]
Types in the schema.
Default
ts
[]
Remarks
Only enumerated types are supported in v1.