This commit is contained in:
shoopea 2019-05-09 17:46:29 +08:00
parent 5c166184dd
commit beb6d48f79

1
sql.go
View File

@ -147,6 +147,7 @@ func initDB() {
,quality VARCHAR(32) ,quality VARCHAR(32)
,seller VARCHAR(32) ,seller VARCHAR(32)
,buyer VARCHAR(32) ,buyer VARCHAR(32)
,price SMALLINT NOT NULL
,status VARCHAR(32) ,status VARCHAR(32)
,end TIMESTAMP NOT NULL ,end TIMESTAMP NOT NULL
,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE ,FOREIGN KEY (obj_id) REFERENCES obj(id) ON DELETE CASCADE