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 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,
	PRIMARY KEY("id" AUTOINCREMENT)
);
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 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,
	PRIMARY KEY("id" AUTOINCREMENT)
);
CREATE TABLE IF NOT EXISTS "migrations" (
	"id"	integer NOT NULL,
	"migration"	varchar NOT NULL,
	"batch"	integer NOT NULL,
	PRIMARY KEY("id" AUTOINCREMENT)
);
CREATE TABLE IF NOT EXISTS "monitoring_banks" (
	"id"	integer 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',
	PRIMARY KEY("id" AUTOINCREMENT)
);
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" VALUES (1,'0001_01_01_000000_create_users_table',1);
INSERT INTO "migrations" VALUES (2,'0001_01_01_000001_create_cache_table',1);
INSERT INTO "migrations" VALUES (3,'0001_01_01_000002_create_jobs_table',1);
INSERT INTO "migrations" VALUES (4,'2026_07_21_002613_create_monitoring_banks_table',2);
INSERT INTO "migrations" VALUES (6,'2026_07_21_012931_add_detail_columns_to_monitoring_banks_table',3);
INSERT INTO "migrations" VALUES (7,'2026_07_21_022439_cleanup_monitoring_banks_table',4);
INSERT INTO "monitoring_banks" 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);
INSERT INTO "monitoring_banks" VALUES (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" 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 IF NOT EXISTS "cache_expiration_index" ON "cache" (
	"expiration"
);
CREATE INDEX IF NOT EXISTS "cache_locks_expiration_index" ON "cache_locks" (
	"expiration"
);
CREATE INDEX IF NOT EXISTS "failed_jobs_connection_queue_failed_at_index" ON "failed_jobs" (
	"connection",
	"queue",
	"failed_at"
);
CREATE UNIQUE INDEX IF NOT EXISTS "failed_jobs_uuid_unique" ON "failed_jobs" (
	"uuid"
);
CREATE INDEX IF NOT EXISTS "jobs_queue_index" ON "jobs" (
	"queue"
);
CREATE INDEX IF NOT EXISTS "sessions_last_activity_index" ON "sessions" (
	"last_activity"
);
CREATE INDEX IF NOT EXISTS "sessions_user_id_index" ON "sessions" (
	"user_id"
);
COMMIT;
