This commit is contained in:
shoopea 2019-05-25 15:50:17 +08:00
parent 1fb56a1787
commit 563791e7f0

2
sql.go
View File

@ -80,7 +80,7 @@ func initDB() {
_, err = db.Exec(`CREATE TABLE obj_castle (
obj_id BIGINT UNSIGNED NOT NULL
,user_id VARCHAR(32) NOT NULL
,logo VARCHAR(32) NOT NULL
,name VARCHAR(80) NOT NULL
,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE
) ENGINE = InnoDB CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci;`)