From 4807c0a497e993f7bfe6a00453827010af215af2 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 11 Sep 2024 17:45:04 +0800 Subject: [PATCH] feat: added database table rows crud --- core/entity/database.go | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/core/entity/database.go b/core/entity/database.go index 1c067dd4..009f871e 100644 --- a/core/entity/database.go +++ b/core/entity/database.go @@ -16,17 +16,18 @@ type DatabaseTable struct { } type DatabaseColumn struct { - Name string `json:"name"` - Type string `json:"type"` - PrimaryKey bool `json:"primary_key,omitempty"` - NotNull bool `json:"not_null"` - Key string `json:"key,omitempty"` - Default string `json:"default"` - Extra string `json:"extra,omitempty"` - Children []DatabaseColumn `json:"children,omitempty"` - Hash string `json:"hash,omitempty"` - OriginalName string `json:"original_name,omitempty"` - Status string `json:"status,omitempty"` + Name string `json:"name"` + Type string `json:"type"` + PrimaryKey bool `json:"primary_key,omitempty"` + NotNull bool `json:"not_null"` + Key string `json:"key,omitempty"` + Default string `json:"default"` + Extra string `json:"extra,omitempty"` + AutoIncrement bool `json:"auto_increment,omitempty"` + Children []DatabaseColumn `json:"children,omitempty"` + Hash string `json:"hash,omitempty"` + OriginalName string `json:"original_name,omitempty"` + Status string `json:"status,omitempty"` } type DatabaseIndex struct {