mirror of
https://github.com/vran-dev/databasir.git
synced 2025-09-20 02:39:20 +08:00
refactor: update primarky logic
This commit is contained in:
@@ -167,6 +167,7 @@ CREATE TABLE table_column_document
|
||||
default_value VARCHAR(512) DEFAULT NULL,
|
||||
size INT NOT NULL,
|
||||
decimal_digits INT DEFAULT NULL,
|
||||
is_primary_key BOOLEAN NOT NULL,
|
||||
nullable VARCHAR(64) NOT NULL COMMENT 'YES, NO, UNKNOWN',
|
||||
auto_increment VARCHAR(64) NOT NULL COMMENT 'YES, NO, UNKNOWN',
|
||||
create_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
@@ -182,7 +183,6 @@ CREATE TABLE table_index_document
|
||||
table_document_id INT NOT NULL,
|
||||
database_document_id INT NOT NULL,
|
||||
name TEXT NOT NULL,
|
||||
is_primary BOOLEAN NOT NULL,
|
||||
is_unique BOOLEAN NOT NULL,
|
||||
column_name_array JSON NOT NULL,
|
||||
create_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
|
Reference in New Issue
Block a user