From aa0cb96936f9f5ddcc4ae3f9072c9ff1a2b739f4 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 4 Sep 2024 17:07:32 +0800 Subject: [PATCH] feat: added index operations for mysql service --- core/entity/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/entity/database.go b/core/entity/database.go index 073fc6a8..1c067dd4 100644 --- a/core/entity/database.go +++ b/core/entity/database.go @@ -19,7 +19,7 @@ type DatabaseColumn struct { Name string `json:"name"` Type string `json:"type"` PrimaryKey bool `json:"primary_key,omitempty"` - Null bool `json:"null"` + NotNull bool `json:"not_null"` Key string `json:"key,omitempty"` Default string `json:"default"` Extra string `json:"extra,omitempty"`