support limit

This commit is contained in:
2022-11-23 18:08:04 +08:00
parent bfe739e442
commit f4cb36dbee
5 changed files with 108 additions and 28 deletions

View File

@@ -12,9 +12,10 @@ func install() {
}
_, err = tx.Exec(`
CREATE TABLE timetables (
CREATE TABLE timetables (
id serial primary key,
"name" text NOT NULL,
"limit" integer NOT NULL DEFAULT 1,
status bool NOT NULL DEFAULT false,
created timestamp NOT NULL DEFAULT now()
);