CREATE TABLE "users" ( "id" int, "email" varchar(255), "password" varchar(255) ); CREATE TABLE "admins" ( "id" int, "email" varchar(255), "password" varchar(255) ); CREATE TABLE "cards" ( "id" int, "card_number" varchar(255) CONSTRAINT card_number REFERENCES card(number) ); CREATE TABLE "statuses" ( "id" int, "user_id" int CONSTRAINT users_id REFERENCES users(id), "card_id" int CONSTRAINT cards_id REFERENCES cards(id), "online_count" int, "online_at" datetime, "offline_at" datetime, "status" bool, "value" int );