BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS "cache" ("key" varchar not null, "value" text not null, "expiration" integer not null, primary key ("key"));
CREATE TABLE IF NOT EXISTS "cache_locks" ("key" varchar not null, "owner" varchar not null, "expiration" integer not null, primary key ("key"));
CREATE TABLE IF NOT EXISTS "failed_jobs" ("id" integer primary key autoincrement not null, "uuid" varchar not null, "connection" varchar not null, "queue" varchar not null, "payload" text not null, "exception" text not null, "failed_at" datetime not null default CURRENT_TIMESTAMP);
CREATE TABLE IF NOT EXISTS "job_batches" ("id" varchar not null, "name" varchar not null, "total_jobs" integer not null, "pending_jobs" integer not null, "failed_jobs" integer not null, "failed_job_ids" text not null, "options" text, "cancelled_at" integer, "created_at" integer not null, "finished_at" integer, primary key ("id"));
CREATE TABLE IF NOT EXISTS "jobs" ("id" integer primary key autoincrement not null, "queue" varchar not null, "payload" text not null, "attempts" integer not null, "reserved_at" integer, "available_at" integer not null, "created_at" integer not null);
CREATE TABLE IF NOT EXISTS "migrations" ("id" integer primary key autoincrement not null, "migration" varchar not null, "batch" integer not null);
CREATE TABLE IF NOT EXISTS "monitoring_banks" ("id" integer primary key autoincrement not null, "periode" date not null, "asset" numeric not null default '0', "dpk" numeric not null default '0', "kredit" numeric not null default '0', "laba" numeric not null default '0', "npl" numeric not null default '0', "ldr" numeric not null default '0', "cr" numeric not null default '0', "likuiditas" numeric not null default '0', "import_by" varchar, "nama_file" varchar, "import_at" datetime, "created_at" datetime, "updated_at" datetime, "kas" double not null default '0', "aba" double not null default '0', "tabungan" double not null default '0', "deposito" double not null default '0', "abp" double not null default '0', "pinjaman" double not null default '0', "modal" double not null default '0', "alat_likuid" double not null default '0', "kewajiban" double not null default '0', "kap" double not null default '0');
CREATE TABLE IF NOT EXISTS "password_reset_tokens" ("email" varchar not null, "token" varchar not null, "created_at" datetime, primary key ("email"));
CREATE TABLE IF NOT EXISTS "sessions" ("id" varchar not null, "user_id" integer, "ip_address" varchar, "user_agent" text, "payload" text not null, "last_activity" integer not null, primary key ("id"));
INSERT INTO "migrations" ("id","migration","batch") VALUES (1,'0001_01_01_000000_create_users_table',1),
 (2,'0001_01_01_000001_create_cache_table',1),
 (3,'0001_01_01_000002_create_jobs_table',1),
 (4,'2026_07_21_002613_create_monitoring_banks_table',2),
 (6,'2026_07_21_012931_add_detail_columns_to_monitoring_banks_table',3),
 (7,'2026_07_21_022439_cleanup_monitoring_banks_table',4);
INSERT INTO "monitoring_banks" ("id","periode","asset","dpk","kredit","laba","npl","ldr","cr","likuiditas","import_by","nama_file","import_at","created_at","updated_at","kas","aba","tabungan","deposito","abp","pinjaman","modal","alat_likuid","kewajiban","kap") VALUES (1,'2026-07-21 00:00:00',181622964346.33,47633308492.89,99449899368.81,970682252.81,14.1,208.78,131.45,74121982701.68,'System','import.xlsx','2026-07-21 02:39:27','2026-07-21 02:39:27','2026-07-21 02:39:27',939267700.0,73182715001.68,7074104265.89,40559204227.0,8151373004.89,602704443.0,26453535385.91,74121982701.68,56387385940.78,20.0),
 (2,'2026-07-22 00:00:00',181656953338.33,47533416826.89,99387273875.81,981533461.13,10,209.09,131.9,74245411183.68,'System','20 PAKAI.xlsx','2026-07-21 03:54:24','2026-07-21 03:54:24','2026-07-21 03:54:24',1123733800.0,73121677383.68,6974212599.89,40559204227.0,8151373004.89,602704443.0,26464386594.23,74245411183.68,56287494274.78,15.0);
INSERT INTO "sessions" ("id","user_id","ip_address","user_agent","payload","last_activity") VALUES ('FlEcPRvfShlglZYfij6CFfGkOBr6mVwQ0Dk6vwqa',1,'127.0.0.1','Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36','eyJfdG9rZW4iOiJVWVhOQ1Q4WFdWaGpvR3YwSXFvemNnQWttdDhhNE1GTjI4TEpxaGZwIiwiX2ZsYXNoIjp7Im5ldyI6W10sIm9sZCI6W119LCJfcHJldmlvdXMiOnsidXJsIjoiaHR0cDpcL1wvMTI3LjAuMC4xOjgwMDBcL2Rhc2hib2FyZCIsInJvdXRlIjoiZGFzaGJvYXJkIn0sImxvZ2luX3dlYl81OWJhMzZhZGRjMmIyZjk0MDE1ODBmMDE0YzdmNThlYTRlMzA5ODlkIjoxfQ==',1784617964);
CREATE INDEX "cache_expiration_index" on "cache" ("expiration");
CREATE INDEX "cache_locks_expiration_index" on "cache_locks" ("expiration");
CREATE INDEX "failed_jobs_connection_queue_failed_at_index" on "failed_jobs" ("connection", "queue", "failed_at");
CREATE UNIQUE INDEX "failed_jobs_uuid_unique" on "failed_jobs" ("uuid");
CREATE INDEX "jobs_queue_index" on "jobs" ("queue");
CREATE INDEX "sessions_last_activity_index" on "sessions" ("last_activity");
CREATE INDEX "sessions_user_id_index" on "sessions" ("user_id");
COMMIT;
