

CREATE TABLE "users" (
                         "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT,
                         "member_id" integer NULL,
                         "username" text NOT NULL,
                         "password" text NOT NULL,
                         "name" text NOT NULL,
                         "note" text DEFAULT NULL,
                         "is_active" integer NOT NULL DEFAULT '1',
                         "is_superuser" integer NOT NULL DEFAULT '0'
);

CREATE UNIQUE INDEX "users_usename" ON "users" ("username");

INSERT INTO "users" ("id", "username", "password", "name", "note", "is_active", "is_superuser") VALUES (1,	'severak',	'$2y$10$G//hwvWHJYNHFk6JNr3GG.kuzM/dI9UTtU2bxr9EvTTEg0YOc8mj.',	'Severák',	'(testovací účet)', 1,1);

