1
0
Fork 0
forked from bton/matekasse
matekasse/tests/data.sql

14 lines
317 B
MySQL
Raw Permalink Normal View History

2023-07-28 21:30:45 +00:00
BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS "users" (
"id" INTEGER NOT NULL,
"username" TEXT NOT NULL,
2023-10-11 19:59:14 +00:00
"balance" REAL NOT NULL,
2023-07-28 21:30:45 +00:00
PRIMARY KEY("id")
);
CREATE TABLE IF NOT EXISTS "tags" (
"tagid" INEGER NOT NULL,
"userid" INTEGER,
FOREIGN KEY("userid") REFERENCES "users"("id"),
PRIMARY KEY("tagid")
);
COMMIT;