switched to sqlite

This commit is contained in:
2026-06-06 19:43:56 +02:00
parent 05c69d26ed
commit 410ca2eeef
10 changed files with 58 additions and 91 deletions

View File

@ -1,11 +1,10 @@
CREATE TABLE "servers" (
"id" BIGSERIAL PRIMARY KEY,
"name" varchar(255) UNIQUE NOT NULL,
"name" varchar(255) UNIQUE NOT NULL PRIMARY KEY,
"last_login" timestamp,
"container_id" varchar(30),
"status" int2 NOT NULL DEFAULT 0,
"status" INT2 NOT NULL DEFAULT 0,
"is_default" bool NOT NULL DEFAULT false,
"redirect_ip" varchar(50)
);
insert into servers (name, last_login, container_id, status, is_default, redirect_ip) values ('potato', now(), null, 1, false, 'play.hypixel.net:25565');
insert into servers (name, last_login, container_id, status, is_default, redirect_ip) values ('potato', datetime(), null, 1, false, 'play.hypixel.net:25565');