mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 22:55:59 +00:00
table editor WIP
This commit is contained in:
3
packages/types/dbinfo.d.ts
vendored
3
packages/types/dbinfo.d.ts
vendored
@@ -10,7 +10,7 @@ export interface ColumnReference {
|
||||
|
||||
export interface ConstraintInfo extends NamedObjectInfo {
|
||||
pairingId?: string;
|
||||
constraintName: string;
|
||||
constraintName?: string;
|
||||
constraintType: 'primaryKey' | 'foreignKey' | 'index' | 'check' | 'unique';
|
||||
}
|
||||
|
||||
@@ -52,6 +52,7 @@ export interface ColumnInfo extends NamedObjectInfo {
|
||||
isSparse: boolean;
|
||||
defaultValue: string;
|
||||
defaultConstraint: string;
|
||||
isPrimaryKey?: boolean; // only used in editor
|
||||
}
|
||||
|
||||
export interface DatabaseObjectInfo extends NamedObjectInfo {
|
||||
|
||||
Reference in New Issue
Block a user