-- Table structure for Luv2_adjust
-- ----------------------------
CREATE TABLE "public"."Luv2_adjust" (
  "company_code" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "whs_code" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "date" date NOT NULL,
  "code" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "price" numeric(10,2),
  "qty" numeric(10,0) DEFAULT 0.00,
  "opname" numeric(10,0) DEFAULT 0.00,
  "difference" numeric(10,0) DEFAULT 0.00,
  "user_code" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "item_barcode" varchar(254) COLLATE "pg_catalog"."default",
  "item_name" varchar(100) COLLATE "pg_catalog"."default",
  "type" varchar(10) COLLATE "pg_catalog"."default" NOT NULL
)
;

-- ----------------------------
-- Records of Luv2_adjust
-- ----------------------------

-- ----------------------------
-- Table structure for Luv2_auth
-- ----------------------------
CREATE TABLE "public"."Luv2_auth" (
  "code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "module" varchar(50) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "auth" varchar(4) COLLATE "pg_catalog"."default" DEFAULT 'CRUD'::character varying,
  "menu" varchar(25) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
)
;

-- ----------------------------
-- Records of Luv2_auth
-- ----------------------------

-- ----------------------------
-- Table structure for Luv2_brand
-- ----------------------------
CREATE TABLE "public"."Luv2_brand" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "name" varchar(50) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6)
)
;

-- ----------------------------
-- Records of Luv2_brand
-- ----------------------------
INSERT INTO "public"."Luv2_brand" VALUES ('240617104137', 'BRDA', 'Brand A Edited', '2024-06-24 15:41:28', '2024-06-24 15:44:42');
INSERT INTO "public"."Luv2_brand" VALUES ('240617104137', 'BRDB', 'Brand B', '2024-06-24 15:41:28', '2024-06-24 15:44:42');
INSERT INTO "public"."Luv2_brand" VALUES ('240617104137', 'BRDC', 'Brand C Added', '2024-06-24 15:45:03', '2024-06-24 15:45:03');
INSERT INTO "public"."Luv2_brand" VALUES ('240617104137', 'BRLC', 'BRAND LOCAL', '2024-08-16 09:45:17', '2024-08-16 09:45:17');
INSERT INTO "public"."Luv2_brand" VALUES ('240617104137', 'WTR1', 'Mizuu', '2024-09-03 08:53:00', '2024-09-03 08:53:00');
INSERT INTO "public"."Luv2_brand" VALUES ('240617104137', 'BRBARU', 'Brand Baru', '2024-09-10 11:30:23', '2024-09-10 11:30:23');
INSERT INTO "public"."Luv2_brand" VALUES ('240617104137', 'K001', 'ABC indonesia', '2024-09-11 14:46:00', '2024-09-11 14:46:00');
INSERT INTO "public"."Luv2_brand" VALUES ('240617104137', 'BRBARU2', 'PRIME', '2024-10-09 10:19:48', '2024-10-09 10:19:48');
INSERT INTO "public"."Luv2_brand" VALUES ('240617104137', 'WNDH', 'BRANDO', '2024-10-09 10:22:34', '2024-10-09 10:22:34');
INSERT INTO "public"."Luv2_brand" VALUES ('240617104137', 'suwii', 'sewy', '2024-10-09 10:24:17', '2024-10-09 10:24:17');
INSERT INTO "public"."Luv2_brand" VALUES ('240617104137', 'BRDCP', 'Brand CPU', '2024-10-09 14:25:29', '2024-10-09 14:25:29');
INSERT INTO "public"."Luv2_brand" VALUES ('240617104137', 'BRDEXC', 'Brand Excel', '2024-10-09 14:25:29', '2024-10-09 14:25:29');

-- ----------------------------
-- Table structure for Luv2_brand_temp
-- ----------------------------
CREATE TABLE "public"."Luv2_brand_temp" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "name" varchar(50) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "id_user" varchar(255) COLLATE "pg_catalog"."default" NOT NULL
)
;

-- ----------------------------
-- Records of Luv2_brand_temp
-- ----------------------------
INSERT INTO "public"."Luv2_brand_temp" VALUES ('240617113203', 'BRDA', 'Brand A', '2024-07-18 08:50:34', '2024-07-18 08:50:34', '2');
INSERT INTO "public"."Luv2_brand_temp" VALUES ('240617113203', 'BRDB', 'Brand B', '2024-07-18 08:50:34', '2024-07-18 08:50:34', '2');
INSERT INTO "public"."Luv2_brand_temp" VALUES ('240617104137', 'BRDEXC', 'Brand Excel', '2024-10-09 14:25:29', '2024-10-09 14:25:29', '1');
INSERT INTO "public"."Luv2_brand_temp" VALUES ('240617104137', 'BRDCP', 'Brand CPU', '2024-10-09 14:25:29', '2024-10-09 14:25:29', '1');

-- ----------------------------
-- Table structure for Luv2_carts
-- ----------------------------
CREATE TABLE "public"."Luv2_carts" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "whs_code" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "user_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "sales_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "member_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "id" int8 NOT NULL GENERATED ALWAYS AS IDENTITY (
INCREMENT 1
MINVALUE  1
MAXVALUE 9223372036854775807
START 1
CACHE 1
),
  "linenum" int4 NOT NULL DEFAULT 0,
  "code" varchar(30) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "barcode" varchar(30) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "name" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "qty" numeric DEFAULT 0,
  "price" numeric(255,0) DEFAULT 0,
  "nprice" numeric(255,0) DEFAULT 0,
  "discount" numeric(255,0) DEFAULT 0,
  "total_price" numeric(255,0) DEFAULT 0,
  "sandbox" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "promo" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "promo_tipe" varchar(16) COLLATE "pg_catalog"."default" DEFAULT 0,
  "pack" varchar(16) COLLATE "pg_catalog"."default" DEFAULT 0,
  "benefit" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "grouping" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "unit" int4,
  "qty_unit" numeric
)
;

-- ----------------------------
-- Records of Luv2_carts
-- ----------------------------
INSERT INTO "public"."Luv2_carts" OVERRIDING SYSTEM VALUE VALUES ('240617104137', 'PIDPAD', '240807133423', '', NULL, 8, 1, 'ZVGD761463', 'AHOY246195', 'CWALX1 1080 XL ORBIT DENIM 18 ELASTIC WALKSHORT', 1, 422624, 422624, 0, 422624, 'N', '0', '0', '0', 'N', '0', '2024-10-23 11:43:30', '2024-10-23 11:43:30', 0, 1);

-- ----------------------------
-- Table structure for Luv2_category
-- ----------------------------
CREATE TABLE "public"."Luv2_category" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "name" varchar(50) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6)
)
;

-- ----------------------------
-- Records of Luv2_category
-- ----------------------------
INSERT INTO "public"."Luv2_category" VALUES ('240617104137', 'CATA', 'Category A', '2024-06-24 15:40:36', '2024-06-24 15:40:36');
INSERT INTO "public"."Luv2_category" VALUES ('240617104137', 'CATB', 'Category B', '2024-06-24 15:40:36', '2024-06-24 15:40:36');
INSERT INTO "public"."Luv2_category" VALUES ('240617104137', 'CATC', 'Category C', '2024-06-24 15:40:52', '2024-06-24 15:40:52');
INSERT INTO "public"."Luv2_category" VALUES ('240617113203', 'CATA', 'Category A', '2024-07-18 08:50:11', '2024-07-18 08:50:11');
INSERT INTO "public"."Luv2_category" VALUES ('240617113203', 'CATB', 'Category B', '2024-07-18 08:50:11', '2024-07-18 08:50:11');
INSERT INTO "public"."Luv2_category" VALUES ('240617113203', 'NTR', 'Nature', '2024-07-19 14:39:44', '2024-07-19 14:39:44');
INSERT INTO "public"."Luv2_category" VALUES ('240617113203', 'NTR2', 'Nature 2', '2024-07-19 14:43:00', '2024-07-19 14:43:00');
INSERT INTO "public"."Luv2_category" VALUES ('240617113203', 'Rag', 'Ragunan', '2024-07-19 16:37:40', '2024-07-19 16:37:40');
INSERT INTO "public"."Luv2_category" VALUES ('240617104137', 'TRY678', 'Under', '2024-08-15 10:52:58', '2024-08-15 10:52:58');
INSERT INTO "public"."Luv2_category" VALUES ('240617104137', 'MK1', 'MINUMAN KEMASAN', '2024-08-16 09:45:17', '2024-08-16 09:45:17');
INSERT INTO "public"."Luv2_category" VALUES ('240617104137', 'BVR', 'Beverages', '2024-09-03 08:53:00', '2024-09-03 08:53:00');
INSERT INTO "public"."Luv2_category" VALUES ('240617104137', 'CTGRBR', 'Category Baru', '2024-09-10 11:26:19', '2024-09-10 11:26:19');
INSERT INTO "public"."Luv2_category" VALUES ('240617104137', 'KECAP', 'KECAP MANIS', '2024-09-11 14:46:37', '2024-09-11 14:46:37');
INSERT INTO "public"."Luv2_category" VALUES ('240617104137', 'FKRM', 'Fikri Mobi', '2024-10-09 14:26:15', '2024-10-09 14:26:15');
INSERT INTO "public"."Luv2_category" VALUES ('240617104137', 'FKRXL', 'Fikri XLalu', '2024-10-09 14:26:15', '2024-10-09 14:26:15');
INSERT INTO "public"."Luv2_category" VALUES ('240617104137', 'NVME', 'Non-Volatile Memory Express', '2024-10-09 14:27:27', '2024-10-09 14:27:27');
INSERT INTO "public"."Luv2_category" VALUES ('240617104137', 'SATA', ' Serial Advanced Technology Attachment', '2024-10-09 14:27:27', '2024-10-09 14:27:27');

-- ----------------------------
-- Table structure for Luv2_category_temp
-- ----------------------------
CREATE TABLE "public"."Luv2_category_temp" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "name" varchar(50) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "id_user" varchar(255) COLLATE "pg_catalog"."default" NOT NULL
)
;

-- ----------------------------
-- Records of Luv2_category_temp
-- ----------------------------
INSERT INTO "public"."Luv2_category_temp" VALUES ('240617113203', 'CATA', 'Category A', '2024-07-18 08:50:11', '2024-07-18 08:50:11', '2');
INSERT INTO "public"."Luv2_category_temp" VALUES ('240617113203', 'CATB', 'Category B', '2024-07-18 08:50:11', '2024-07-18 08:50:11', '2');
INSERT INTO "public"."Luv2_category_temp" VALUES ('240617104137', 'SATA', ' Serial Advanced Technology Attachment', '2024-10-09 14:27:27', '2024-10-09 14:27:27', '1');
INSERT INTO "public"."Luv2_category_temp" VALUES ('240617104137', 'NVME', 'Non-Volatile Memory Express', '2024-10-09 14:27:27', '2024-10-09 14:27:27', '1');

-- ----------------------------
-- Table structure for Luv2_company
-- ----------------------------
CREATE TABLE "public"."Luv2_company" (
  "code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "name" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "address" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "phone" varchar(30) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "email" varchar(30) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "updated_at" timestamp(6),
  "expired_at" timestamp(6),
  "verified_at" timestamp(6)
)
;

-- ----------------------------
-- Records of Luv2_company
-- ----------------------------
INSERT INTO "public"."Luv2_company" VALUES ('240617104137', 'Adi Mandiri', 'jl.karara', '089621791541', 'adiganteng630@gmail.com', '2024-06-17 10:41:37', NULL, NULL);
INSERT INTO "public"."Luv2_company" VALUES ('240909114512', 'test', 'Denpasar', '098765666770', 'adiganteng630@gmail.com', '2024-09-09 11:45:12', NULL, NULL);
INSERT INTO "public"."Luv2_company" VALUES ('241011134344', 'logitech', 'logitech', '089721312', 'adiganteng630@gmail.com', '2024-10-11 13:43:44', NULL, NULL);
INSERT INTO "public"."Luv2_company" VALUES ('241023084220', 'testexpired', 'jl.abcasda', '089621791541', 'adiganteng630@gmail.com', '2024-10-23 08:42:20', '2024-10-23 08:42:20', NULL);
INSERT INTO "public"."Luv2_company" VALUES ('241023084642', 'Test2', 'Jl. Merdeka no 77', '08562314386', 'adiganteng630@gmail.com', '2024-10-23 08:46:42', '2024-11-05 08:46:42', NULL);
INSERT INTO "public"."Luv2_company" VALUES ('241025110715', 'Mizu Living', 'Jl.Pegangsaan Timur', '089621791541', 'belajarfullstack999@gmail.com', '2024-10-25 11:07:15', '2024-11-08 11:07:54', '2024-10-25 11:07:54');

-- ----------------------------
-- Table structure for Luv2_invoice
-- ----------------------------
CREATE TABLE "public"."Luv2_invoice" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no_inv" varchar(255) COLLATE "pg_catalog"."default",
  "date" date,
  "whs_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "user_code" varchar(12) COLLATE "pg_catalog"."default",
  "sales_code" varchar(12) COLLATE "pg_catalog"."default",
  "member_code" varchar(12) COLLATE "pg_catalog"."default",
  "payment" varchar(5) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "note" text COLLATE "pg_catalog"."default",
  "total_qty" numeric(10,2) DEFAULT 0,
  "subtotal" numeric(20,2) DEFAULT 0,
  "disc_total" numeric DEFAULT 0,
  "must_paid" numeric(20,0) DEFAULT 0,
  "paid" numeric DEFAULT 0,
  "change" numeric DEFAULT 0,
  "sandbox" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "promo" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "cashback" varchar(255) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "deleted" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "id" int8
)
;

-- ----------------------------
-- Records of Luv2_invoice
-- ----------------------------
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12410071631001', NULL, '2024-10-07', 'PIDPADTSM', '240617104137', 'TRTLSPR', NULL, 'Cash', NULL, 1.00, 422624.00, 0, 422624, 500000, 77376, 'N', '', 'N', 'N', '2024-10-07 16:31:09', '2024-10-07 16:31:09', 43);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12410080841001', NULL, '2024-10-08', 'PIDPADTSM', '240617104137', 'K1N', NULL, 'Cash', NULL, 2.00, 32000.00, 0, 32000, 40000, 8000, 'N', '', 'N', 'N', '2024-10-08 08:41:38', '2024-10-08 08:41:38', 44);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12410080947002', NULL, '2024-10-08', 'PIDPADTSM', '240617104137', 'TRTLSPR', NULL, 'Qris', NULL, 2.00, 716228.00, 0, 716228, 716228, NULL, 'N', '', 'N', 'N', '2024-10-08 09:47:49', '2024-10-08 09:47:49', 45);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12410080948003', NULL, '2024-10-08', 'PIDPADTSM', '240617104137', 'K1N', NULL, 'Card', '{"type":"Credit","nama_bank":null,"nama_pemegang_kartu":"a","cash":null,"transfer":491933,"nomor_kartu":"1231"}', 1.00, 491933.00, 0, 491933, 491933, NULL, 'N', '', 'N', 'N', '2024-10-08 09:48:16', '2024-10-08 09:48:16', 46);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12410081003004', NULL, '2024-10-08', 'PIDPAD', '240617104137', 'TRTLSPR', NULL, 'Cash', NULL, 1.00, 490137.00, 0, 490137, 500000, 9863, 'N', '', 'N', 'N', '2024-10-08 10:03:53', '2024-10-08 10:03:53', 47);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12410081006005', NULL, '2024-10-08', 'PIDPAD', '240617104137', 'K1N', NULL, 'Cash', NULL, 1.00, 12000.00, 0, 12000, 15000, 3000, 'N', '', 'N', 'N', '2024-10-08 10:06:20', '2024-10-08 10:06:20', 48);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407111404012', NULL, '2024-07-11', 'PIDPAD', '240617104137', NULL, NULL, 'Cash', NULL, 1.00, 128799.00, 0, 128799, 130000, 1201, 'N', '', 'N', 'N', '2024-07-11 14:04:00', '2024-07-11 14:04:00', 13);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407111419013', NULL, '2024-07-11', 'PIDPAD', '240617104137', NULL, NULL, 'Cash', NULL, 1.00, 128799.00, 0, 128799, 130000, 1201, 'N', '', 'N', 'N', '2024-07-11 14:19:10', '2024-07-11 14:19:11', 14);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407101644001', NULL, '2024-07-10', 'PIDPAD', '240617104137', NULL, NULL, 'Cash', NULL, 2.00, 565419.00, 0, 565419, 600000, 34581, 'N', '', 'N', 'N', '2024-07-10 16:44:40', '2024-07-10 16:44:40', 1);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407110939001', NULL, '2024-07-11', 'PIDPAD', '240617104137', NULL, NULL, 'Cash', NULL, 2.00, 474027.00, 0, 474027, 500000, 25973, 'N', '', 'N', 'N', '2024-07-11 09:39:50', '2024-07-11 09:39:50', 2);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407110943002', NULL, '2024-07-11', 'PIDPAD', '240617104137', NULL, NULL, 'Cash', NULL, 1.00, 128805.00, 0, 128805, 123000, -5805, 'N', '', 'N', 'N', '2024-07-11 09:43:44', '2024-07-11 09:43:44', 3);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407110949003', NULL, '2024-07-11', 'PIDPAD', '240617104137', NULL, NULL, 'Cash', NULL, 1.00, 128805.00, 0, 128805, 130000, 1195, 'N', '', 'N', 'N', '2024-07-11 09:49:38', '2024-07-11 09:49:39', 4);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12409031136001', NULL, '2024-09-03', 'PIDPAD', '240617104137', 'TRTLSPR', NULL, 'Cash', NULL, 3.00, 1339548.00, 0, 1339548, 1400000, 60452, 'N', '', 'N', 'N', '2024-09-03 11:36:50', '2024-09-03 11:36:51', 37);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407110953005', NULL, '2024-07-11', 'PIDPAD', '240617104137', NULL, NULL, 'Cash', NULL, 1.00, 128799.00, 0, 128799, 130000, 1201, 'N', '', 'N', 'N', '2024-07-11 09:53:42', '2024-07-11 09:53:42', 6);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617113203', 'BJ22407180910002', NULL, '2024-07-18', 'PIDPAD', '24916543213', 'TRTLSPR', NULL, 'Qris', NULL, 1.00, 226986.00, 0, 226986, 226986, NULL, 'N', '', 'N', 'N', '2024-07-18 09:10:51', '2024-07-18 09:10:51', 33);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617113203', 'BJ22407180931003', NULL, '2024-07-18', 'PIDPAD', '24916543213', 'TRTLSPR', NULL, 'Cash', NULL, 4.00, 1221071.00, 0, 1221071, 1300000, 78929, 'N', '', 'N', 'N', '2024-07-18 09:31:34', '2024-07-18 09:31:34', 34);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ22409201423001', NULL, '2024-09-20', 'PIDPAD', '240807133999', 'TRTLSPR', NULL, 'Cash', NULL, 2.00, 32000.00, 7000, 25000, 25000, 0, 'N', '', 'N', 'N', '2024-09-20 14:23:53', '2024-09-20 14:23:53', 42);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407111102008', NULL, '2024-07-11', 'PIDPAD', '240617104137', NULL, NULL, 'Cash', NULL, 1.00, 142795.00, 0, 142795, 150000, 7205, 'N', '', 'N', 'N', '2024-07-11 11:02:04', '2024-07-11 11:02:04', 9);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407110955006', NULL, '2024-07-11', 'PIDPAD', '240617104137', NULL, NULL, 'Cash', NULL, 3.00, 1061196.00, 0, 1061196, 1200000, 138804, 'N', '', 'N', 'N', '2024-07-11 09:55:26', '2024-07-11 09:55:26', 7);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407111101007', NULL, '2024-07-11', 'PIDPAD', '240617104137', NULL, NULL, 'Cash', NULL, 1.00, 128799.00, 0, 128799, 130000, 1201, 'N', '', 'N', 'N', '2024-07-11 11:01:03', '2024-07-11 11:01:03', 8);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407111105009', NULL, '2024-07-11', 'PIDPAD', '240617104137', NULL, NULL, 'Cash', NULL, 1.00, 128799.00, 0, 128799, 130000, 1201, 'N', '', 'N', 'N', '2024-07-11 11:05:11', '2024-07-11 11:05:11', 10);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407111108010', NULL, '2024-07-11', 'PIDPAD', '240617104137', NULL, NULL, 'Cash', NULL, 1.00, 154980.00, 0, 154980, 160000, 5020, 'N', '', 'N', 'N', '2024-07-11 11:08:22', '2024-07-11 11:08:23', 11);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407111109011', NULL, '2024-07-11', 'PIDPAD', '240617104137', NULL, NULL, 'Cash', NULL, 1.00, 128799.00, 0, 128799, 150000, 21201, 'N', '', 'N', 'N', '2024-07-11 11:09:00', '2024-07-11 11:09:00', 12);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407120904001', NULL, '2024-07-12', 'PIDPAD', '240617104137', 'TRTLSPR', NULL, 'Multi', '{"type":"Credit","nama_bank":null,"nama_pemegang_kartu":"iaia","cash":"50000","transfer":50000,"nomor_kartu":"8773"}', 1.00, 128799.00, 28799, 100000, 100000, NULL, 'N', '', 'N', 'N', '2024-07-12 09:04:19', '2024-07-12 09:04:19', 16);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'RS12407121520010', 'BJ12407121418002', '2024-07-12', 'PIDPAD', '240617104137', 'TRTLSPR', NULL, NULL, '', 1.00, -98181.00, 0, -98181, NULL, NULL, 'N', '0', 'N', 'N', '2024-07-12 00:00:00', '2024-07-12 15:20:29', 25);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'RS12407121544004', 'BJ12407120904001', '2024-07-12', 'PIDPAD', '240617104137', 'TRTLSPR', NULL, 'Qris', NULL, 1.00, 6.00, 0, 28805, 28805, 0, 'N', '', 'N', 'N', '2024-07-12 15:44:41', '2024-07-12 15:44:41', 26);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407151101001', NULL, '2024-07-15', 'PIDPAD', '240617104137', 'TRTLSPR', NULL, 'Cash', NULL, 1.00, 128799.00, 0, 128799, 130000, 1201, 'N', '', 'N', 'N', '2024-07-15 11:01:10', '2024-07-15 11:01:10', 27);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407151424002', NULL, '2024-07-15', 'PIDPAD', '240617104137', 'TRTLSPR', NULL, 'Cash', NULL, 1.00, 128805.00, 0, 128805, 130000, 1195, 'N', '', 'N', 'N', '2024-07-15 14:24:16', '2024-07-15 14:24:16', 28);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407151424003', NULL, '2024-07-15', 'PIDPAD', '240617104137', 'TRTLSPR', NULL, 'Cash', NULL, 1.00, 128805.00, 0, 128805, 130000, 1195, 'N', '', 'N', 'N', '2024-07-15 14:24:59', '2024-07-15 14:24:59', 29);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407171200001', NULL, '2024-07-17', 'PIDPAD', '240617104137', 'TRTLSPR', NULL, 'Cash', NULL, 1.00, 205185.00, 0, 205185, 300000, 94815, 'N', '', 'N', 'N', '2024-07-17 12:00:41', '2024-07-17 12:00:41', 30);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407171301002', NULL, '2024-07-17', 'PIDPAD', '240617104137', 'TRTLSPR', NULL, 'Cash', NULL, 1.00, 128805.00, 0, 128805, 130000, 1195, 'N', '', 'N', 'N', '2024-07-17 13:01:33', '2024-07-17 13:01:34', 31);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407110951004', NULL, '2024-07-11', 'PIDPAD', '240617104137', 'TRTLSPR', NULL, 'Card', '{"type":"Credit","nama_bank":null,"nama_pemegang_kartu":"yay","cash":null,"transfer":412584,"nomor_kartu":"4141"}', 3.00, 412584.00, 0, 412584, 412584, NULL, 'N', '', 'N', 'N', '2024-07-11 09:51:46', '2024-07-11 09:51:46', 5);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617113203', 'BJ22407180910001', NULL, '2024-07-18', 'PIDPAD', '24916543213', 'TRTLSPR', NULL, 'Cash', NULL, 1.00, 128805.00, 0, 128805, 129000, 195, 'N', '', 'N', 'N', '2024-07-18 09:10:15', '2024-07-18 09:10:17', 32);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617113203', 'BJ22407181336004', NULL, '2024-07-18', 'PIDPAD', '24916543213', 'K1N', NULL, 'Cash', NULL, 3.00, 832746.00, 0, 832746, 900000, 67254, 'N', '', 'N', 'N', '2024-07-18 13:36:04', '2024-07-18 13:36:04', 35);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617113203', 'BJ22407191656001', NULL, '2024-07-19', 'PIDPAD', '24916543213', 'TRTLSPR', NULL, 'Cash', NULL, 1.00, 125000.00, 0, 125000, 130000, 5000, 'N', '', 'N', 'N', '2024-07-19 16:56:49', '2024-07-19 16:56:49', 36);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12409031535002', NULL, '2024-09-03', 'PIDPAD', '240617104137', 'TRTLSPR', NULL, 'Cash', NULL, 13.00, 3531783.00, 0, 3531783, 4000000, 468217, 'N', '', 'N', 'N', '2024-09-03 15:35:13', '2024-09-03 15:35:13', 38);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12409191542001', NULL, '2024-09-19', 'PIDPAD', '240617104137', 'K1N', 'PM24070001', 'Cash', NULL, 4.00, 10000.00, 0, 10000, 20000, 10000, 'N', '', 'N', 'N', '2024-09-19 15:42:14', '2024-09-19 15:42:14', 41);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12409111623001', NULL, '2024-09-11', 'PIDPAD', '240617104137', 'K1N', NULL, 'Cash', NULL, 5.00, 60000.00, 0, 60000, 100000, 40000, 'N', '', 'N', 'N', '2024-09-11 16:23:04', '2024-09-11 16:23:04', 40);
INSERT INTO "public"."Luv2_invoice" VALUES ('240617104137', 'BJ12407121418002', NULL, '2024-07-12', 'PIDPAD', '240617104137', 'TRTLSPR', NULL, 'Cash', NULL, 1.00, 226986.00, 0, 126986, 127000, 14, 'N', '', '74cvBKhXPWjpJ', 'N', '2024-07-12 14:18:24', '2024-07-12 14:18:24', 17);

-- ----------------------------
-- Table structure for Luv2_invoice_detail
-- ----------------------------
CREATE TABLE "public"."Luv2_invoice_detail" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "whs_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "code" varchar(30) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "barcode" varchar(30) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "name" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "qty" numeric(10,2) DEFAULT 0,
  "price" numeric(10,2) DEFAULT 0,
  "nprice" numeric(10,2) DEFAULT 0,
  "disc" numeric DEFAULT 0,
  "total_price" numeric(10,2) DEFAULT 0,
  "sandbox" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "linenum" int4 NOT NULL DEFAULT 0,
  "promo" varchar(12) COLLATE "pg_catalog"."default" DEFAULT 0,
  "promo_tipe" int2 DEFAULT 0,
  "pack" int2 DEFAULT 0,
  "benefit" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "member_code" varchar(255) COLLATE "pg_catalog"."default",
  "user_code" varchar(255) COLLATE "pg_catalog"."default",
  "sales_code" varchar(255) COLLATE "pg_catalog"."default",
  "status" varchar(255) COLLATE "pg_catalog"."default",
  "unit" int4 DEFAULT 0,
  "qty_unit" numeric DEFAULT 0
)
;

-- ----------------------------
-- Records of Luv2_invoice_detail
-- ----------------------------
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12410080841001', 'PIDPADTSM', 'KMBABC250', '12123434', 'KECAP MANIS BOTOL BESAR 250ML', 1.00, 20000.00, 20000.00, 0, 20000.00, 'N', 2, '0', 0, 0, 'N', '2024-10-08 08:41:10', '2024-10-08 08:41:10', NULL, '240617104137', 'K1N', '0', 0, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617113203', 'BJ22407180910001', 'PIDPAD', 'IQUB368808', 'PKMY958526', '00DWSW 12 XS SURF PALMS CROP', 1.00, 128805.00, 128805.00, 0, 128805.00, 'N', 1, '0', 0, 0, 'N', '2024-07-18 08:46:00', '2024-07-18 08:46:00', NULL, '24916543213', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407101644001', 'PIDPAD', 'ZVGD761463', 'AHOY246195', 'CWALX1 1080 XL ORBIT DENIM 18 ELASTIC WALKSHORT', 1.00, 422624.00, 422624.00, 0, 422624.00, 'N', 2, '0', 0, 0, 'N', '2024-07-10 16:44:28', '2024-07-10 16:44:28', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407101644001', 'PIDPAD', 'JNAB849429', 'ZKQV479329', 'LCOBF1 1000 ALL LUNCH BAG MIXED', 1.00, 142795.00, 142795.00, 0, 142795.00, 'N', 1, '0', 0, 0, 'N', '2024-07-10 16:44:13', '2024-07-10 16:44:13', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407110939001', 'PIDPAD', 'MKBQ217561', 'SULB490779', 'CTEGH0 3443 L INDO BEACHMAMA TEE', 1.00, 345228.00, 345228.00, 0, 345228.00, 'N', 2, '0', 0, 0, 'N', '2024-07-11 09:21:07', '2024-07-11 09:21:07', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407110943002', 'PIDPAD', 'IQUB368808', 'PKMY958526', '00DWSW 12 XS SURF PALMS CROP', 1.00, 128805.00, 128805.00, 0, 128805.00, 'N', 1, '0', 0, 0, 'N', '2024-07-11 09:43:33', '2024-07-11 09:43:33', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407110949003', 'PIDPAD', 'IQUB368808', 'PKMY958526', '00DWSW 12 XS SURF PALMS CROP', 1.00, 128805.00, 128805.00, 0, 128805.00, 'N', 1, '0', 0, 0, 'N', '2024-07-11 09:45:06', '2024-07-11 09:45:06', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407110951004', 'PIDPAD', 'IQUB368808', 'PKMY958526', '00DWSW 12 XS SURF PALMS CROP', 1.00, 128805.00, 128805.00, 0, 128805.00, 'N', 3, '0', 0, 0, 'N', '2024-07-11 09:51:36', '2024-07-11 09:51:36', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407110951004', 'PIDPAD', 'SJQY923758', 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', 1.00, 128799.00, 128799.00, 0, 128799.00, 'N', 2, '0', 0, 0, 'N', '2024-07-11 09:51:34', '2024-07-11 09:51:34', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407110951004', 'PIDPAD', 'PWPY507519', 'EUVP173657', 'GSIAT2 1000 8 LOLOMA HI CUT SKIMPY PANT', 1.00, 154980.00, 154980.00, 0, 154980.00, 'N', 1, '0', 0, 0, 'N', '2024-07-11 09:50:07', '2024-07-11 09:50:07', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407110953005', 'PIDPAD', 'SJQY923758', 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', 1.00, 128799.00, 128799.00, 0, 128799.00, 'N', 1, '0', 0, 0, 'N', '2024-07-11 09:52:53', '2024-07-11 09:52:53', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407110955006', 'PIDPAD', 'ZVGD761463', 'AHOY246195', 'CWALX1 1080 XL ORBIT DENIM 18 ELASTIC WALKSHORT', 1.00, 422624.00, 422624.00, 0, 422624.00, 'N', 3, '0', 0, 0, 'N', '2024-07-11 09:54:33', '2024-07-11 09:54:33', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407110955006', 'PIDPAD', 'TFQG886337', 'TFEE179404', 'WLY8JW 1221 14 NALU CAP SL UV', 1.00, 483592.00, 483592.00, 0, 483592.00, 'N', 2, '0', 0, 0, 'N', '2024-07-11 09:54:20', '2024-07-11 09:54:20', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407110955006', 'PIDPAD', 'PWPY507519', 'EUVP173657', 'GSIAT2 1000 8 LOLOMA HI CUT SKIMPY PANT', 1.00, 154980.00, 154980.00, 0, 154980.00, 'N', 1, '0', 0, 0, 'N', '2024-07-11 09:54:17', '2024-07-11 09:54:17', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407111101007', 'PIDPAD', 'SJQY923758', 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', 1.00, 128799.00, 128799.00, 0, 128799.00, 'N', 1, '0', 0, 0, 'N', '2024-07-11 11:00:52', '2024-07-11 11:00:52', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407111102008', 'PIDPAD', 'JNAB849429', 'ZKQV479329', 'LCOBF1 1000 ALL LUNCH BAG MIXED', 1.00, 142795.00, 142795.00, 0, 142795.00, 'N', 1, '0', 0, 0, 'N', '2024-07-11 11:01:56', '2024-07-11 11:01:56', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407111105009', 'PIDPAD', 'SJQY923758', 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', 1.00, 128799.00, 128799.00, 0, 128799.00, 'N', 1, '0', 0, 0, 'N', '2024-07-11 11:03:45', '2024-07-11 11:03:45', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407111108010', 'PIDPAD', 'PWPY507519', 'EUVP173657', 'GSIAT2 1000 8 LOLOMA HI CUT SKIMPY PANT', 1.00, 154980.00, 154980.00, 0, 154980.00, 'N', 1, '0', 0, 0, 'N', '2024-07-11 11:08:12', '2024-07-11 11:08:12', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407111109011', 'PIDPAD', 'SJQY923758', 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', 1.00, 128799.00, 128799.00, 0, 128799.00, 'N', 1, '0', 0, 0, 'N', '2024-07-11 11:08:49', '2024-07-11 11:08:49', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407111404012', 'PIDPAD', 'SJQY923758', 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', 1.00, 128799.00, 128799.00, 0, 128799.00, 'N', 1, '0', 0, 0, 'N', '2024-07-11 14:03:49', '2024-07-11 14:03:49', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407111419013', 'PIDPAD', 'SJQY923758', 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', 1.00, 128799.00, 128799.00, 0, 128799.00, 'N', 1, '0', 0, 0, 'N', '2024-07-11 14:18:58', '2024-07-11 14:18:58', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407120904001', 'PIDPAD', 'SJQY923758', 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', 1.00, 100000.00, 128799.00, 28799, 100000.00, 'N', 1, '240607075302', 2, 0, 'N', '2024-07-12 09:03:39', '2024-07-12 09:03:39', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407121418002', 'PIDPAD', 'JYJW294912', 'JOIH316166', 'SINGLE HAMMOCK/ALL', 1.00, 226986.00, 226986.00, 0, 226986.00, 'N', 1, '0', 0, 0, 'N', '2024-07-12 14:16:39', '2024-07-12 14:16:39', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'RS12407121520010', 'PIDPAD', 'JYJW294912', 'JOIH316166', 'SINGLE HAMMOCK/ALL', -1.00, 226986.00, 226986.00, 0, -226986.00, 'N', 1, '0', 0, 0, 'N', '2024-07-12 00:00:00', NULL, NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'RS12407121544004', 'PIDPAD', 'SJQY923758', 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', -1.00, 100000.00, 128799.00, 28799, -100000.00, 'N', 1, '0', 0, 0, 'N', '2024-07-12 15:44:41', NULL, NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'RS12407121544004', 'PIDPAD', 'IQUB368808', 'PKMY958526', '00DWSW 12 XS SURF PALMS CROP', 1.00, 128805.00, 128805.00, 0, 128805.00, 'N', 1, '0', 0, 0, 'N', '2024-07-12 15:44:41', NULL, NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407151101001', 'PIDPAD', 'SJQY923758', 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', 1.00, 128799.00, 128799.00, 0, 128799.00, 'N', 1, '0', 0, 0, 'N', '2024-07-15 11:00:55', '2024-07-15 11:00:55', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407151424002', 'PIDPAD', 'IQUB368808', 'PKMY958526', '00DWSW 12 XS SURF PALMS CROP', 1.00, 128805.00, 128805.00, 0, 128805.00, 'N', 1, '0', 0, 0, 'N', '2024-07-15 14:24:02', '2024-07-15 14:24:02', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407151424003', 'PIDPAD', 'IQUB368808', 'PKMY958526', '00DWSW 12 XS SURF PALMS CROP', 1.00, 128805.00, 128805.00, 0, 128805.00, 'N', 1, '0', 0, 0, 'N', '2024-07-15 14:24:34', '2024-07-15 14:24:34', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407171200001', 'PIDPAD', 'CFUH361835', 'ARKX394653', 'TGTE56 4093 36 GLITTER STRIPE', 1.00, 205185.00, 205185.00, 0, 205185.00, 'N', 11, '0', 0, 0, 'N', '2024-07-16 15:10:03', '2024-07-16 15:10:03', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407171301002', 'PIDPAD', 'IQUB368808', 'PKMY958526', '00DWSW 12 XS SURF PALMS CROP', 1.00, 128805.00, 300000.00, 0, 128805.00, 'N', 1, '0', 0, 0, 'N', '2024-07-17 13:01:24', '2024-07-17 13:01:24', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617113203', 'BJ22407180910002', 'PIDPAD', 'JYJW294912', 'JOIH316166', 'SINGLE HAMMOCK/ALL', 1.00, 226986.00, 226986.00, 0, 226986.00, 'N', 1, '0', 0, 0, 'N', '2024-07-18 09:10:43', '2024-07-18 09:10:43', NULL, '24916543213', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617113203', 'BJ22407180931003', 'PIDPAD', 'JYJW294912', 'JOIH316166', 'SINGLE HAMMOCK/ALL', 1.00, 226986.00, 226986.00, 0, 226986.00, 'N', 4, '0', 0, 0, 'N', '2024-07-18 09:31:19', '2024-07-18 09:31:19', NULL, '24916543213', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617113203', 'BJ22407180931003', 'PIDPAD', 'MFCN958908', 'WKRJ527691', 'GSIWI1 1000 6 ISHKA BATIK BRALETTE', 1.00, 381694.00, 381694.00, 0, 381694.00, 'N', 3, '0', 0, 0, 'N', '2024-07-18 09:31:16', '2024-07-18 09:31:16', NULL, '24916543213', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617113203', 'BJ22407180931003', 'PIDPAD', 'TFQG886337', 'TFEE179404', 'WLY8JW 1221 14 NALU CAP SL UV', 1.00, 483592.00, 483592.00, 0, 483592.00, 'N', 2, '0', 0, 0, 'N', '2024-07-18 09:31:14', '2024-07-18 09:31:14', NULL, '24916543213', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12410080841001', 'PIDPADTSM', 'kmab135', '12123123', 'KECAP MANIS ABC BOTOL 135ML', 1.00, 12000.00, 12000.00, 0, 12000.00, 'N', 1, '0', 0, 0, 'N', '2024-10-08 08:41:02', '2024-10-08 08:41:02', NULL, '240617104137', 'K1N', '0', 0, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12410080947002', 'PIDPADTSM', 'WDME378232', 'CMFF641701', 'CTEYD9 49 XL STAPLE MUSCLE', 1.00, 293604.00, 293604.00, 0, 293604.00, 'N', 2, '0', 0, 0, 'N', '2024-10-08 09:00:44', '2024-10-08 09:00:44', NULL, '240617104137', 'TRTLSPR', '0', 0, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12410080947002', 'PIDPADTSM', 'ZVGD761463', 'AHOY246195', 'CWALX1 1080 XL ORBIT DENIM 18 ELASTIC WALKSHORT', 1.00, 422624.00, 422624.00, 0, 422624.00, 'N', 1, '0', 0, 0, 'N', '2024-10-08 09:00:38', '2024-10-08 09:00:38', NULL, '240617104137', 'TRTLSPR', '0', 0, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12410080948003', 'PIDPADTSM', 'SYEG625952', 'LXAK235631', 'TCTC75 90 42 SURF REVIVAL', 1.00, 491933.00, 491933.00, 0, 491933.00, 'N', 1, '0', 0, 0, 'N', '2024-10-08 09:47:54', '2024-10-08 09:47:54', NULL, '240617104137', 'K1N', '0', 0, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12410081003004', 'PIDPAD', 'YELA179001', 'NDJP886788', 'WLY7GW 70 14 TROPIC GLITCH CAP SLEEVE', 1.00, 490137.00, 490137.00, 0, 490137.00, 'N', 1, '0', 0, 0, 'N', '2024-10-08 10:03:43', '2024-10-08 10:03:43', NULL, '240617104137', 'TRTLSPR', '0', 0, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12410081006005', 'PIDPAD', 'kmab135', '12123123', 'KECAP MANIS ABC BOTOL 135ML', 1.00, 12000.00, 12000.00, 0, 12000.00, 'N', 1, '0', 0, 0, 'N', '2024-10-08 10:06:07', '2024-10-08 10:06:07', NULL, '240617104137', 'K1N', '0', 0, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12407110939001', 'PIDPAD', 'SJQY923758', 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', 1.00, 128799.00, 128799.00, 0, 128799.00, 'N', 1, '0', 0, 0, 'N', '2024-07-11 09:21:04', '2024-07-11 09:21:04', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'RS12407121520010', 'PIDPAD', 'IQUB368808', 'PKMY958526', '00DWSW 12 XS SURF PALMS CROP', 1.00, 128805.00, 128805.00, 0, 128805.00, 'N', 1, '0', 0, 0, 'N', '2024-07-12 00:00:00', NULL, NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617113203', 'BJ22407180931003', 'PIDPAD', 'SJQY923758', 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', 1.00, 128799.00, 128799.00, 0, 128799.00, 'N', 1, '0', 0, 0, 'N', '2024-07-18 09:31:11', '2024-07-18 09:31:11', NULL, '24916543213', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617113203', 'BJ22407181336004', 'PIDPAD', 'EFQM668376', 'LGCO178418', 'GBOEJ1 3155 L SURF ESSENTIALS II 3 BOARDSHORT', 1.00, 476961.00, 476961.00, 0, 476961.00, 'N', 3, '0', 0, 0, 'N', '2024-07-18 13:35:28', '2024-07-18 13:35:28', NULL, '24916543213', 'K1N', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617113203', 'BJ22407181336004', 'PIDPAD', 'JYJW294912', 'JOIH316166', 'SINGLE HAMMOCK/ALL', 1.00, 226986.00, 226986.00, 0, 226986.00, 'N', 2, '0', 0, 0, 'N', '2024-07-18 13:35:25', '2024-07-18 13:35:25', NULL, '24916543213', 'K1N', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617113203', 'BJ22407181336004', 'PIDPAD', 'SJQY923758', 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', 1.00, 128799.00, 128799.00, 0, 128799.00, 'N', 1, '0', 0, 0, 'N', '2024-07-18 13:34:30', '2024-07-18 13:34:30', NULL, '24916543213', 'K1N', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617113203', 'BJ22407191656001', 'PIDPAD', 'FIKRI MOBILIU', '909912311', 'FIKRI MOBILZ', 1.00, 125000.00, 125000.00, 0, 125000.00, 'N', 1, '0', 0, 0, 'N', '2024-07-19 16:52:06', '2024-07-19 16:52:06', NULL, '24916543213', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12409031136001', 'PIDPAD', 'ZVGD761463', 'AHOY246195', 'CWALX1 1080 XL ORBIT DENIM 18 ELASTIC WALKSHORT', 1.00, 422624.00, 422624.00, 0, 422624.00, 'N', 3, '0', 0, 0, 'N', '2024-09-03 11:36:37', '2024-09-03 11:36:37', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12409031136001', 'PIDPAD', 'RTND609516', 'PDEW190716', 'CBORA1 46 S LAZE VOLLEY', 1.00, 426787.00, 426787.00, 0, 426787.00, 'N', 2, '0', 0, 0, 'N', '2024-09-03 11:36:33', '2024-09-03 11:36:33', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12409031136001', 'PIDPAD', 'YELA179001', 'NDJP886788', 'WLY7GW 70 14 TROPIC GLITCH CAP SLEEVE', 1.00, 490137.00, 490137.00, 0, 490137.00, 'N', 1, '0', 0, 0, 'N', '2024-09-03 11:36:15', '2024-09-03 11:36:15', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12409031535002', 'PIDPAD', 'TTAM752062', 'TIRQ522047', 'OTEWA2 8264 4 BEACH SCRIPT TEE-GROMS', 1.00, 254079.00, 254079.00, 0, 254079.00, 'N', 2, '0', 0, 0, 'N', '2024-09-03 15:33:13', '2024-09-03 15:33:39', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12409031535002', 'PIDPAD', 'SAXQ706219', 'IKVT544376', 'GBOAQ8 3282 S MIAMI VIBES BOARDIE', 12.00, 273142.00, 273142.00, 0, 3277704.00, 'N', 1, '0', 0, 0, 'N', '2024-09-03 15:33:02', '2024-09-03 15:35:02', NULL, '240617104137', 'TRTLSPR', '0', NULL, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12409111623001', 'PIDPAD', 'kmab135', '12123123', 'KECAP MANIS ABC BOTOL 135ML', 5.00, 12000.00, 12000.00, 0, 60000.00, 'N', 1, '0', 0, 0, 'N', '2024-09-11 16:21:21', '2024-09-11 16:21:38', NULL, '240617104137', 'K1N', '0', 0, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12409191542001', 'PIDPAD', 'TSTUNT1001', '1T0S0T1UTN', 'Mizu Air', 4.00, 2500.00, 2500.00, 0, 10000.00, 'N', 1, '0', 0, 0, 'N', '2024-09-19 15:41:40', '2024-09-19 15:41:56', 'PM24070001', '240617104137', 'K1N', '0', 0, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ22409201423001', 'PIDPAD', 'KMBABC250', '12123434', 'KECAP MANIS BOTOL BESAR 250ML ( Pack 2 ) ( Pack 2 )', 1.00, 15625.00, 20000.00, 0, 15625.00, 'N', 2, '240920142207', 3, 2, 'N', '2024-09-20 14:23:11', '2024-09-20 14:23:11', NULL, '240807133999', 'TRTLSPR', '0', 0, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ22409201423001', 'PIDPAD', 'kmab135', '12123123', 'KECAP MANIS ABC BOTOL 135ML ( Pack 1 ) ( Pack 1 )', 1.00, 9375.00, 12000.00, 0, 9375.00, 'N', 1, '240920142207', 3, 1, 'N', '2024-09-20 14:23:06', '2024-09-20 14:23:11', NULL, '240807133999', 'TRTLSPR', '0', 0, 0);
INSERT INTO "public"."Luv2_invoice_detail" VALUES ('240617104137', 'BJ12410071631001', 'PIDPADTSM', 'ZVGD761463', 'AHOY246195', 'CWALX1 1080 XL ORBIT DENIM 18 ELASTIC WALKSHORT', 1.00, 422624.00, 422624.00, 0, 422624.00, 'N', 1, '0', 0, 0, 'N', '2024-10-07 16:30:58', '2024-10-07 16:30:58', NULL, '240617104137', 'TRTLSPR', '0', 0, 0);

-- ----------------------------
-- Table structure for Luv2_item
-- ----------------------------
CREATE TABLE "public"."Luv2_item" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "code" varchar(30) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "barcode" varchar(30) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "name" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "brand_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT 0,
  "category_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT 0,
  "size_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT 0,
  "status" varchar(12) COLLATE "pg_catalog"."default" DEFAULT 0,
  "inventory" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'Y'::character varying,
  "sales" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'Y'::character varying,
  "purchase" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'Y'::character varying,
  "active" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'Y'::character varying,
  "avgprice" numeric DEFAULT 0,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "price" numeric,
  "whs_code" varchar(10) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying
)
;

-- ----------------------------
-- Records of Luv2_item
-- ----------------------------
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'TEPML020189', '91010202018901', 'DUSTY PINK BALI MANDALA', 'BRAND01', 'CAT01', 'S', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 12312, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', '8994826923969', '8994826923969', '00FWTE-4568-LSURF SPRAY HERITAGE TEE', 'BRAND03', 'CAT01', 'L', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'TEPML030189', '91010203018901', 'DUSTY PINK BALI MANDALA', 'BRAND01', 'CAT01', 'M', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'TEPML040189', '91010204018901', 'DUSTY PINK BALI MANDALA', 'BRAND01', 'CAT01', 'L', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'TEPML040206', '91010204020601', 'BALINESE DRAGON', 'BRAND01', 'CAT01', 'L', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'TEPML050189', '91010205018901', 'DUSTY PINK BALI MANDALA', 'BRAND01', 'CAT01', 'XL', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'TEPML050206', '91010205020601', 'BALINESE DRAGON', 'BRAND01', 'CAT01', 'XL', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'TEPML020206', '91010202020601', 'BALINESE DRAGON', 'BRAND01', 'CAT01', 'S', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'ZVGD761463', 'AHOY246195', 'CWALX1 1080 XL ORBIT DENIM 18 ELASTIC WALKSHORT', 'BRDB', 'CATA', 'BGKRICK', 'Y', 'N', 'Y', 'Y', 'Y', 14400, '2024-09-03 10:44:12', '2024-09-03 10:44:12', 357072, 'PIDPAD');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'TEPML030206', '91010203020601', 'BALINESE DRAGON', 'BRAND01', 'CAT01', 'M', 'Y', '0', '0', '0', 'Y', 61111, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'YELA179001', 'NDJP886788', 'WLY7GW 70 14 TROPIC GLITCH CAP SLEEVE', 'BRDA', 'CATA', 'BGKRICK', 'Y', 'N', 'Y', 'Y', 'Y', 113346, '2024-06-25 09:56:18', '2024-08-09 09:41:12', 238583, 'PIDPAD');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'SYEG625952', 'LXAK235631', 'TCTC75 90 42 SURF REVIVAL', 'BRDC', 'CATA', 'SHXXL', 'Y', 'N', 'Y', 'Y', 'Y', 423187, '2024-06-25 09:56:18', '2024-08-09 09:41:12', 425573, 'PIDPAD');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'RTND609516', 'PDEW190716', 'CBORA1 46 S LAZE VOLLEY', 'BRDA', 'CATC', 'BGKRICK', 'Y', 'Y', 'Y', 'Y', 'Y', 301429, '2024-06-25 09:56:18', '2024-09-20 11:30:47', 496003, 'PIDPAD');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'USSE514348', 'WLJW830833', 'CBOTL9 40 36 MIRAGE MEDINA ULTIMATE', 'BRDA', 'CATA', 'MHXL', 'Y', 'N', 'Y', 'Y', 'Y', 393591, '2024-06-25 09:56:18', '2024-08-09 09:41:12', 329482, 'PIDPAD');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'TTAM752062', 'TIRQ522047', 'OTEWA2 8264 4 BEACH SCRIPT TEE-GROMSS', 'BRDB', 'CATB', 'MHXL', 'Y', 'Y', 'Y', 'Y', 'Y', 333206, '2024-06-25 09:56:18', '2024-09-20 11:36:04', 167871, 'PIDPAD');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'SAXQ706219', 'IKVT544376', 'GBOAQ8 3282 S MIAMI VIBES BOARDIE', 'BRDB', 'CATB', 'BGKRICK', 'Y', 'Y', 'Y', 'Y', 'Y', 1164426, '2024-06-25 09:56:18', '2024-09-20 11:38:54', 348100, 'PIDPAD');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'TSRL380588', 'RXJB419881', 'GWABM9 830 S INFAMOUS SHORT', 'BRDC', 'CATC', 'SHXXL', 'Y', 'N', 'Y', 'Y', 'Y', 191887, '2024-06-25 09:56:18', '2024-08-09 09:41:12', 389218, 'PIDPAD');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'TSTUNT1001', '1T0S0T1UTN', 'Mizu Air', 'WTR1', 'BVR', 'M', 'Y', 'Y', 'Y', 'Y', 'Y', 2058, '2024-09-03 09:35:57', '2024-10-08 15:44:24', 2500, 'PIDPAD');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'WDME378232', 'CMFF641701', 'CTEYD9 49 XL STAPLE MUSCLE', 'WNDH', 'CATB', 'BGKRICK', 'Y', 'Y', 'Y', 'Y', 'Y', 415837, '2024-06-25 09:56:18', '2024-10-09 10:22:34', 179463, 'PIDPAD');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'UJGA178326', 'YYCP701100', 'GTEDG0-78-L BALI SUNNY PARADISE TEE', 'suwii', 'CATC', 'SHXXL', 'Y', 'Y', 'Y', 'Y', 'Y', 381113, '2024-06-25 09:56:18', '2024-10-09 10:24:17', 362599, 'PIDPAD');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'SJQY923758', 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', 'BRDC', 'CATA', 'SHXXL', 'Y', 'N', 'Y', 'Y', 'Y', 232889, '2024-06-25 09:56:18', '2024-08-09 09:41:12', 425734, 'PIDPAD');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'testarossa', 'TESTAROSSA123', 'Testarozza', 'BRLC', 'MK1', '56ty', 'Y', 'Y', 'Y', 'Y', 'Y', 0, '2024-09-12 15:37:11', '2024-09-12 15:37:11', NULL, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'TEPML060189', '91010206018901', 'DUSTY PINK BALI MANDALA', 'BRAND01', 'CAT01', 'XXL', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'TEPML060206', '91010206020601', 'BALINESE DRAGON', 'BRAND01', 'CAT01', 'XXL', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'VLRMC020002', '91031102000201', 'BLACK DIAMOND', 'BRAND02', 'CAT03', 'S', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'VLRMC020006', '91031102000601', 'ABSTRACT TROPICAL', 'BRAND02', 'CAT03', 'S', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'VLRMC030002', '91031103000201', 'BLACK DIAMOND', 'BRAND02', 'CAT03', 'M', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'VLRMC030006', '91031103000601', 'ABSTRACT TROPICAL', 'BRAND02', 'CAT03', 'M', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'VLRMC040002', '91031104000201', 'BLACK DIAMOND', 'BRAND02', 'CAT03', 'L', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'VLRMC040006', '91031104000601', 'ABSTRACT TROPICAL', 'BRAND02', 'CAT03', 'L', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'VLRMC050002', '91031105000201', 'BLACK DIAMOND', 'BRAND02', 'CAT03', 'XL', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'VLRMC050006', '91031105000601', 'ABSTRACT TROPICAL', 'BRAND02', 'CAT03', 'XL', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'VLRMC060002', '91031106000201', 'BLACK DIAMOND', 'BRAND02', 'CAT03', 'XXL', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'VLRMC060006', '91031106000601', 'ABSTRACT TROPICAL', 'BRAND02', 'CAT03', 'XXL', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'PRIME110', 'PRIME110', 'PRIME DRINK', 'BRBARU2', 'BVR', 'M', 'Y', 'Y', 'Y', 'Y', 'Y', 0, '2024-10-09 10:19:48', '2024-10-09 10:19:48', NULL, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'UUXD834533', 'WJSX710203', 'GWANC9 830 M CLASSIC SURF SHORT', 'BRDB', 'CATC', 'BGKRICK', 'Y', 'N', 'Y', 'Y', 'Y', 447210, '2024-06-25 09:56:18', '2024-08-09 09:41:12', 269066, 'PIDPAD');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'TFQG886337', 'TFEE179404', 'WLY8JW 1221 14 NALU CAP SL UV', 'BRDA', 'CATB', 'SHXXL', 'Y', 'N', 'Y', 'Y', 'Y', 180597, '2024-06-25 09:56:18', '2024-08-09 09:41:12', 375785, 'PIDPAD');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'TOIS476739', 'FGUM919449', '19SMOT 8266 41 DBAH LITE ECO OPEN TOE', 'BRDC', 'CATC', 'SHXXL', 'Y', 'N', 'Y', 'Y', 'Y', 449440, '2024-06-25 09:56:18', '2024-08-09 09:41:12', 239394, 'PIDPAD');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'USCG701628', 'WHLA173508', 'TGTE93 70 38 BEACH BELLA', 'BRDB', 'CATA', 'BGKRICK', 'Y', 'N', 'Y', 'Y', 'Y', 155792, '2024-09-03 10:41:57', '2024-09-03 10:41:57', 428302, 'PIDPAD');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'kmab135', '12123123', 'KECAP MANIS ABC BOTOL 135ML', '', '', '', 'Y', 'Y', 'Y', 'Y', 'Y', 3500, '2024-09-11 15:39:54', '2024-09-11 15:39:54', 12000, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', 'KMBABC250', '12123434', 'KECAP MANIS BOTOL BESAR 250ML', 'K001', 'KECAP', '250ML', 'Y', 'Y', 'Y', 'Y', 'Y', 0, '2024-09-12 13:44:05', '2024-09-12 13:44:05', 20000, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', '8994826923723', '8994826923723', '00BWTE-9724-XXSWETTIE ICON RELAXED TEE', 'BRAND03', 'CAT01', 'XXS', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', '8994826923730', '8994826923730', '00BWTE-9724-XSWETTIE ICON RELAXED TEE', 'BRAND03', 'CAT01', 'XS', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', '8994826923747', '8994826923747', '00BWTE-9724-SWETTIE ICON RELAXED TEE', 'BRAND03', 'CAT01', 'S', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', '8994826923754', '8994826923754', '00BWTE-9724-MWETTIE ICON RELAXED TEE', 'BRAND03', 'CAT01', 'M', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', '8994826923761', '8994826923761', '00BWTE-9724-LWETTIE ICON RELAXED TEE', 'BRAND03', 'CAT01', 'L', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', '8994826923921', '8994826923921', '00FWTE-4568-XXSSURF SPRAY HERITAGE TEE', 'BRAND03', 'CAT01', 'XXS', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', '8994826923938', '8994826923938', '00FWTE-4568-XSSURF SPRAY HERITAGE TEE', 'BRAND03', 'CAT01', 'XS', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', '8994826923945', '8994826923945', '00FWTE-4568-SSURF SPRAY HERITAGE TEE', 'BRAND03', 'CAT01', 'S', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');
INSERT INTO "public"."Luv2_item" VALUES ('240617104137', '8994826923952', '8994826923952', '00FWTE-4568-MSURF SPRAY HERITAGE TEE', 'BRAND03', 'CAT01', 'M', 'Y', '0', '0', '0', 'Y', 0, '2024-10-09 15:37:11', '2024-10-10 11:06:24', 0, '');

-- ----------------------------
-- Table structure for Luv2_item_pricelist
-- ----------------------------
CREATE TABLE "public"."Luv2_item_pricelist" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL,
  "item_code" varchar(20) COLLATE "pg_catalog"."default" NOT NULL,
  "pricelist_code" varchar(20) COLLATE "pg_catalog"."default" NOT NULL,
  "price" numeric DEFAULT 0,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "whs_code" varchar(10) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying
)
;

-- ----------------------------
-- Records of Luv2_item_pricelist
-- ----------------------------
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'SJQY923758', 'PLInter', 128799, '2024-06-25 10:02:04', '2024-08-09 10:02:53', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'ZVGD761463', 'PLInter', 422624, '2024-06-25 10:02:04', '2024-08-09 10:02:53', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'SAXQ706219', 'PLInter', 273142, '2024-06-25 10:02:04', '2024-08-09 10:02:53', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'YELA179001', 'PLInter', 490137, '2024-06-25 10:02:04', '2024-08-09 10:02:53', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'RTND609516', 'PLInter', 426787, '2024-06-25 10:02:04', '2024-08-09 10:02:53', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TTAM752062', 'PLInter', 254079, '2024-06-25 10:02:04', '2024-08-09 10:02:53', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TSTUNT1001', 'PLInter', 2500, '2024-09-05 15:37:54', '2024-09-05 15:37:54', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'kmab135', 'PLLocal', 10000, '2024-09-11 16:14:01', '2024-09-11 16:14:01', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML040189', 'PRICE02', 279000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML050189', 'PRICE02', 279000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML060189', 'PRICE02', 279000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC020006', 'PRICE02', 549000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC030006', 'PRICE02', 549000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC040006', 'PRICE02', 549000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML020206', 'PRICE02', 2890002, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML030206', 'PRICE02', 289000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML040206', 'PRICE02', 289000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML050206', 'PRICE02', 289000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML060206', 'PRICE02', 289000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML020189', 'PRICE02', 279000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML030189', 'PRICE02', 279000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC050006', 'PRICE02', 549000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC060006', 'PRICE02', 549000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC020002', 'PRICE02', 599000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC030002', 'PRICE02', 599000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC040002', 'PRICE02', 599000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC050002', 'PRICE02', 599000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC060002', 'PRICE02', 599000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923761', 'PRICE02', 299000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923754', 'PRICE02', 299000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923747', 'PRICE02', 299000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923730', 'PRICE02', 299000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923723', 'PRICE02', 299000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923969', 'PRICE02', 269000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923952', 'PRICE02', 269000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923945', 'PRICE02', 269000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923938', 'PRICE02', 269000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923921', 'PRICE02', 269000, '2024-10-11 08:35:08', '2024-10-11 08:43:39', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'ASDERAAA', 'PLLocal', 12255, '2024-10-22 08:42:59', '2024-10-22 08:42:59', '-');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'Khang', 'PLInter', 126071, '2024-08-09 10:02:53', '2024-08-09 10:02:53', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'WDME378232', 'PLInter', 293604, '2024-06-25 10:02:04', '2024-08-09 10:02:53', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'SYEG625952', 'PLInter', 491933, '2024-06-25 10:02:04', '2024-08-09 10:02:53', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'USSE514348', 'PLInter', 374024, '2024-06-25 10:02:04', '2024-08-09 10:02:53', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'LXAK235631', 'PLInter', 2500, '2024-09-05 15:45:48', '2024-09-05 15:45:48', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'kmab135', 'PLInter', 12000, '2024-09-11 16:14:46', '2024-09-11 16:14:46', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923754', 'PLInter', 299000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923730', 'PLInter', 299000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923938', 'PLInter', 269000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML050189', 'PLInter', 279000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC060002', 'PLInter', 599000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML020189', 'PLInter', 279000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML020206', 'PLInter', 289000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC060006', 'PLInter', 549000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923969', 'PLInter', 269000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC050006', 'PLInter', 549000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923761', 'PLInter', 299000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923747', 'PLInter', 299000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML060206', 'PLInter', 289000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML050206', 'PLInter', 289000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML030206', 'PLInter', 289000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC030006', 'PLInter', 549000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML040206', 'PLInter', 289000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC050002', 'PLInter', 599000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML060189', 'PLInter', 279000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923723', 'PLInter', 299000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923921', 'PLInter', 269000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC040006', 'PLInter', 549000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC020002', 'PLInter', 599000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC040002', 'PLInter', 599000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923945', 'PLInter', 269000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML040189', 'PLInter', 279000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC030002', 'PLInter', 599000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923952', 'PLInter', 269000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC020006', 'PLInter', 549000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML030189', 'PLInter', 279000, '2024-10-11 08:45:08', '2024-10-11 08:45:08', '');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML020189', 'PLLocal', 12312, '2024-10-22 08:46:46', '2024-10-22 08:46:46', '-');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'KMBABC250', 'PLInter', 20000, '2024-09-12 13:47:05', '2024-09-12 13:47:05', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TSRL380588', 'PLInter', 260406, '2024-06-25 10:02:04', '2024-08-09 10:02:53', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'UJGA178326', 'PLInter', 213289, '2024-06-25 10:02:04', '2024-08-09 10:02:53', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'UUXD834533', 'PLInter', 221512, '2024-06-25 10:02:04', '2024-08-09 10:02:53', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TFQG886337', 'PLInter', 483592, '2024-06-25 10:02:04', '2024-08-09 10:02:53', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'USCG701628', 'PLInter', 347573, '2024-06-25 10:02:04', '2024-08-09 10:02:53', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TOIS476739', 'PLInter', 320933, '2024-06-25 10:02:04', '2024-08-09 10:02:53', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '34546', 'PLInter', 190000, '2024-08-15 10:27:15', '2024-08-15 10:27:15', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'km1231', 'PLInter', 125000, '2024-08-15 10:28:08', '2024-08-15 10:28:08', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '59963', 'PLInter', 13000, '2024-08-15 10:33:37', '2024-08-15 10:33:37', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'tehbotol', 'PLInter', 4000, '2024-08-16 11:59:30', '2024-08-16 11:59:30', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923747', 'PLInter', 299000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML030206', 'PLInter', 289000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923969', 'PLInter', 269000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML040206', 'PLInter', 289000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML040189', 'PLInter', 279000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML030189', 'PLInter', 279000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC040002', 'PLInter', 599000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC030002', 'PLInter', 599000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC050006', 'PLInter', 549000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923952', 'PLInter', 269000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC050002', 'PLInter', 599000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC060006', 'PLInter', 549000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML020206', 'PLInter', 289000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923723', 'PLInter', 299000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC060002', 'PLInter', 599000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923761', 'PLInter', 299000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923921', 'PLInter', 269000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923945', 'PLInter', 269000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC040006', 'PLInter', 549000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923730', 'PLInter', 299000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC020006', 'PLInter', 5490005050, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML020189', 'PLInter', 279000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML060189', 'PLInter', 279000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML060206', 'PLInter', 289000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML050189', 'PLInter', 279000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923938', 'PLInter', 269000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC020002', 'PLInter', 599000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'VLRMC030006', 'PLInter', 549000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', '8994826923754', 'PLInter', 299000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist" VALUES ('240617104137', 'TEPML050206', 'PLInter', 289000, '2024-10-11 09:05:40', '2024-10-11 09:18:06', 'PIDPAD');

-- ----------------------------
-- Table structure for Luv2_item_pricelist_temp
-- ----------------------------
CREATE TABLE "public"."Luv2_item_pricelist_temp" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL,
  "item_code" varchar(20) COLLATE "pg_catalog"."default" NOT NULL,
  "pricelist_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL,
  "price" numeric DEFAULT 0,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "id_user" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "whs_code" varchar(10) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
)
;

-- ----------------------------
-- Records of Luv2_item_pricelist_temp
-- ----------------------------
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'TEPML020206', 'PLInter', 289000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'TEPML030206', 'PLInter', 289000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'TEPML040206', 'PLInter', 289000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'TEPML050206', 'PLInter', 289000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'TEPML060206', 'PLInter', 289000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'TEPML020189', 'PLInter', 279000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'TEPML030189', 'PLInter', 279000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'TEPML040189', 'PLInter', 279000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'TEPML050189', 'PLInter', 279000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'TEPML060189', 'PLInter', 279000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'VLRMC020006', 'PLInter', 5490005050, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'VLRMC030006', 'PLInter', 549000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'VLRMC040006', 'PLInter', 549000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'VLRMC050006', 'PLInter', 549000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'VLRMC060006', 'PLInter', 549000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'VLRMC020002', 'PLInter', 599000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'VLRMC030002', 'PLInter', 599000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'VLRMC040002', 'PLInter', 599000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'VLRMC050002', 'PLInter', 599000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', 'VLRMC060002', 'PLInter', 599000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', '8994826923761', 'PLInter', 299000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', '8994826923754', 'PLInter', 299000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', '8994826923747', 'PLInter', 299000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', '8994826923730', 'PLInter', 299000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', '8994826923723', 'PLInter', 299000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', '8994826923969', 'PLInter', 269000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', '8994826923952', 'PLInter', 269000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', '8994826923945', 'PLInter', 269000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', '8994826923938', 'PLInter', 269000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');
INSERT INTO "public"."Luv2_item_pricelist_temp" VALUES ('240617104137', '8994826923921', 'PLInter', 269000, '2024-10-11 09:18:06', '2024-10-11 09:18:06', '2', 'PIDPAD');

-- ----------------------------
-- Table structure for Luv2_item_temp
-- ----------------------------
CREATE TABLE "public"."Luv2_item_temp" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "code" varchar(30) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "barcode" varchar(30) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "name" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "brand_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT 0,
  "category_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT 0,
  "size_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT 0,
  "status" varchar(12) COLLATE "pg_catalog"."default" DEFAULT 0,
  "inventory" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'Y'::character varying,
  "sales" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'Y'::character varying,
  "purchase" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'Y'::character varying,
  "active" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'Y'::character varying,
  "avgprice" numeric DEFAULT 0,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "id_user" varchar(255) COLLATE "pg_catalog"."default",
  "price" numeric
)
;

-- ----------------------------
-- Records of Luv2_item_temp
-- ----------------------------

-- ----------------------------
-- Table structure for Luv2_item_trans
-- ----------------------------
CREATE TABLE "public"."Luv2_item_trans" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "whs_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL,
  "tipe" varchar(2) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no_trans" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "date" date,
  "item_code" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
  "linenum" int4 NOT NULL,
  "qty" numeric(10,2) DEFAULT 0,
  "canceled" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6)
)
;

-- ----------------------------
-- Records of Luv2_item_trans
-- ----------------------------
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2408301500260001', '2024-08-30', 'SJQY923758', 1, 3.00, 'Y', '2024-08-30 15:04:55', '2024-08-30 15:04:55');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2408301500260001', '2024-08-30', 'DNQE279566', 2, 4.00, 'Y', '2024-08-30 15:04:55', '2024-08-30 15:04:55');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2409021007150001', '2024-09-02', 'IQUB368808', 1, 1.00, 'N', '2024-09-02 10:07:57', '2024-09-02 10:07:57');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2409021007150001', '2024-09-02', 'MFCN958908', 2, 1.00, 'N', '2024-09-02 10:07:57', '2024-09-02 10:07:57');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2408301500260001', '2024-08-30', 'TSTUNT1001', 1, 25.00, 'Y', '2024-08-30 15:04:55', '2024-08-30 15:04:55');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR24083015002600223', '2024-08-30', 'TSTUNT1001', 1, 35.00, 'Y', '2024-08-30 15:04:55', '2024-08-30 15:04:55');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR24080315129319751', NULL, 'SYEG625952', 1, 16.00, 'Y', NULL, NULL);
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR24080315129324232', NULL, 'USCG701628', 1, 27.00, 'Y', NULL, NULL);
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR24080315129551612', NULL, 'ZVGD761463', 1, -1.00, 'Y', NULL, NULL);
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '4', 'BJ12409031136001', '2024-09-03', 'ZVGD761463', 0, -1.00, 'N', '2024-09-03 11:36:50', '2024-09-03 11:36:50');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '4', 'BJ12409031136001', '2024-09-03', 'RTND609516', 1, -1.00, 'N', '2024-09-03 11:36:50', '2024-09-03 11:36:50');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '4', 'BJ12409031136001', '2024-09-03', 'YELA179001', 2, -1.00, 'N', '2024-09-03 11:36:50', '2024-09-03 11:36:50');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '4', 'BJ12409191542001', '2024-09-19', 'TSTUNT1001', 0, -4.00, 'N', '2024-09-19 15:42:14', '2024-09-19 15:42:14');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '4', 'BJ12409111623001', '2024-09-11', 'kmab135', 0, -5.00, 'N', '2024-09-11 16:23:04', '2024-09-11 16:23:04');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2409040820280001', '2024-09-04', 'TSTUNT1001', 1, 12.00, 'N', '2024-09-04 10:34:39', '2024-09-04 10:34:39');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2409041039170002', '2024-09-04', 'TSTUNT1001', 1, 12.00, 'N', '2024-09-04 10:39:40', '2024-09-04 10:39:40');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2409041048260003', '2024-09-04', 'TSTUNT1001', 1, 48.00, 'N', '2024-09-04 10:49:01', '2024-09-04 10:49:01');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2409041051150004', '2024-09-04', 'YELA179001', 1, 36.00, 'N', '2024-09-04 10:52:20', '2024-09-04 10:52:20');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '2', 'GR240905090620001', '2024-09-05', 'TSTUNT1001', 1, -1.00, 'N', '2024-09-05 09:13:29', '2024-09-05 09:13:29');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '2', 'GR240905092336001', '2024-09-05', 'TSTUNT1001', 1, -11.00, 'N', '2024-09-05 09:25:40', '2024-09-05 09:25:40');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '4', 'BJ72409061326001', '2024-09-06', 'SAXQ706219', 0, -1.00, 'N', '2024-09-06 13:26:43', '2024-09-06 13:26:43');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2409100903050001', '2024-09-09', 'SAXQ706219', 1, 5.00, 'N', '2024-09-10 09:04:07', '2024-09-10 09:04:07');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2409100904130002', '2024-09-10', 'YELA179001', 1, 4.00, 'N', '2024-09-10 09:04:38', '2024-09-10 09:04:38');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '2', 'GR240910093654003', '2024-09-10', 'ZVGD761463', 1, -5.00, 'Y', '2024-09-10 09:37:22', '2024-09-10 09:37:22');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '2', 'GR240910093654003', '2024-09-10', 'SAXQ706219', 2, -12.00, 'Y', '2024-09-10 09:37:22', '2024-09-10 09:37:22');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '2', 'GR240910093855003', '2024-09-10', 'ZVGD761463', 1, -4.00, 'Y', '2024-09-10 09:39:38', '2024-09-10 09:39:38');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '2', 'GR240910093855003', '2024-09-10', 'TTAM752062', 2, -24.00, 'Y', '2024-09-10 09:39:38', '2024-09-10 09:39:38');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '2', 'GR240910093855003', '2024-09-10', 'WDME378232', 3, -6.00, 'Y', '2024-09-10 09:39:38', '2024-09-10 09:39:38');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '3', 'IT2409181542001', '2024-09-18', 'TFQG886337', 1, -7.00, 'N', '2024-09-18 15:42:25', '2024-09-18 15:43:05');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2409100941420003', '2024-09-10', 'ZVGD761463', 1, 11.00, 'N', '2024-09-10 09:42:02', '2024-09-10 09:42:02');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', '', '1', 'GR2409101635200004', '2024-09-10', 'SAXQ706219', 1, 5.00, 'N', '2024-09-10 16:37:20', '2024-09-10 16:37:20');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', '', '1', 'GR2409101635200004', '2024-09-10', 'ZVGD761463', 2, 6.00, 'N', '2024-09-10 16:37:20', '2024-09-10 16:37:20');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2409111150440001', '2024-09-11', 'TSTUNT1001', 1, 5.00, 'N', '2024-09-11 11:51:06', '2024-09-11 11:51:06');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '1', 'GR2409111151300001', '2024-09-11', 'TSTUNT1001', 1, 12.00, 'N', '2024-09-11 11:51:52', '2024-09-11 11:51:52');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '2', 'GR240911115509002', '2024-09-11', 'TSTUNT1001', 1, -2.00, 'N', '2024-09-11 11:55:28', '2024-09-11 11:55:28');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2409111422170002', '2024-09-09', 'SAXQ706219', 1, 2.00, 'N', '2024-09-11 14:22:54', '2024-09-11 14:22:54');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2409111422170002', '2024-09-09', 'ZVGD761463', 2, 2.00, 'N', '2024-09-11 14:22:54', '2024-09-11 14:22:54');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2409111422580003', '2024-09-10', 'YELA179001', 1, 2.00, 'N', '2024-09-11 14:23:23', '2024-09-11 14:23:23');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2409111422580003', '2024-09-10', 'TSTUNT1001', 2, 5.00, 'N', '2024-09-11 14:23:23', '2024-09-11 14:23:23');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2409111540440004', '2024-09-11', 'kmab135', 1, 48.00, 'N', '2024-09-11 15:41:36', '2024-09-11 15:41:36');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '4', 'BJ22409201423001', '2024-09-20', 'KMBABC250', 0, -1.00, 'N', '2024-09-20 14:23:53', '2024-09-20 14:23:53');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '2', 'GR240911163223005', '2024-09-11', 'kmab135', 1, -1.00, 'N', '2024-09-11 16:49:04', '2024-09-11 16:49:04');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '3', 'IT2409131516001', '2024-09-13', 'TSTUNT1001', 1, -5.00, 'N', '2024-09-13 15:16:30', '2024-09-13 16:20:33');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '3', 'IT2409131516001', '2024-09-13', 'RTND609516', 1, -5.00, 'N', '2024-09-13 15:16:30', '2024-09-13 16:20:33');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '3', 'IT2409131516001', '2024-09-13', 'TSTUNT1001', 1, 5.00, 'N', '2024-09-13 15:16:30', '2024-09-13 16:20:33');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '3', 'IT2409131516001', '2024-09-13', 'RTND609516', 1, 4.00, 'N', '2024-09-13 15:16:30', '2024-09-13 16:20:33');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '3', 'IT2409131516041', '2024-09-13', 'TSTUNT1001', 1, 12.00, 'N', '2024-09-18 15:16:30', '2024-09-13 16:20:33');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '3', 'IT2409180931001', '2024-09-18', 'TSTUNT1001', 1, -25.00, 'N', '2024-09-18 09:31:10', '2024-09-18 09:34:53');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '3', 'IT2409180931001', '2024-09-18', 'TTAM752062', 1, -6.00, 'N', '2024-09-18 09:31:10', '2024-09-18 09:34:53');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '3', 'IT2409180931001', '2024-09-18', 'TSTUNT1001', 1, 26.00, 'N', '2024-09-18 09:31:10', '2024-09-18 09:34:53');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '3', 'IT2409180931001', '2024-09-18', 'TTAM752062', 1, 7.00, 'N', '2024-09-18 09:31:10', '2024-09-18 09:34:53');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '3', 'IT2409181052001', '2024-09-18', 'KMBABC250', 1, -1.00, 'N', '2024-09-18 10:52:02', '2024-09-18 11:16:29');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '3', 'IT2409181139001', '2024-09-18', 'RTND609516', 1, 0.00, 'N', '2024-09-18 11:39:54', '2024-09-18 11:45:45');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '3', 'IT2409181139001', '2024-09-18', 'RTND609516', 1, 2.00, 'N', '2024-09-18 11:39:54', '2024-09-18 11:45:45');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '3', 'IT2409181150001', '2024-09-18', 'TSTUNT1001', 1, -3.00, 'N', '2024-09-18 11:50:04', '2024-09-18 11:56:38');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '3', 'IT2409181150001', '2024-09-18', 'TSTUNT1001', 1, 4.00, 'N', '2024-09-18 11:50:04', '2024-09-18 11:56:38');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '3', 'IT2409181542001', '2024-09-18', 'TSTUNT1001', 1, -7.00, 'N', '2024-09-18 15:42:25', '2024-09-18 15:43:05');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '3', 'IT2409181542001', '2024-09-18', 'TFQG886337', 1, 0.00, 'N', '2024-09-18 15:42:25', '2024-09-18 15:43:05');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '3', 'IT2409181542001', '2024-09-18', 'TSTUNT1001', 1, 0.00, 'N', '2024-09-18 15:42:25', '2024-09-18 15:43:05');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '2', 'GR240910094034003', '2024-09-10', 'SAXQ706219', 1, -123.00, 'Y', '2024-09-10 09:40:54', '2024-09-10 09:40:54');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '3', 'IT2409181052001', '2024-09-18', 'KMBABC250', 1, 2.00, 'N', '2024-09-18 10:52:02', '2024-09-18 11:16:29');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '4', 'BJ22409201423001', '2024-09-20', 'kmab135', 1, -1.00, 'N', '2024-09-20 14:23:53', '2024-09-20 14:23:53');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '4', 'BJ12409031535002', '2024-09-03', 'TTAM752062', 0, -1.00, 'N', '2024-09-03 15:35:13', '2024-09-03 15:35:13');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '4', 'BJ12409031535002', '2024-09-03', 'SAXQ706219', 1, -12.00, 'N', '2024-09-03 15:35:13', '2024-09-03 15:35:13');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '4', 'BJ12410071631001', '2024-10-07', 'ZVGD761463', 0, -1.00, 'N', '2024-10-07 16:31:09', '2024-10-07 16:31:09');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '4', 'BJ12410080841001', '2024-10-08', 'KMBABC250', 0, -1.00, 'N', '2024-10-08 08:41:38', '2024-10-08 08:41:38');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '4', 'BJ12410080841001', '2024-10-08', 'kmab135', 1, -1.00, 'N', '2024-10-08 08:41:38', '2024-10-08 08:41:38');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '4', 'BJ12410080947002', '2024-10-08', 'WDME378232', 0, -1.00, 'N', '2024-10-08 09:47:49', '2024-10-08 09:47:49');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '4', 'BJ12410080947002', '2024-10-08', 'ZVGD761463', 1, -1.00, 'N', '2024-10-08 09:47:49', '2024-10-08 09:47:49');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPADTSM', '4', 'BJ12410080948003', '2024-10-08', 'SYEG625952', 0, -1.00, 'N', '2024-10-08 09:48:16', '2024-10-08 09:48:16');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '4', 'BJ12410081003004', '2024-10-08', 'YELA179001', 0, -1.00, 'N', '2024-10-08 10:03:53', '2024-10-08 10:03:53');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '4', 'BJ12410081006005', '2024-10-08', 'kmab135', 0, -1.00, 'N', '2024-10-08 10:06:20', '2024-10-08 10:06:20');
INSERT INTO "public"."Luv2_item_trans" VALUES ('240617104137', 'PIDPAD', '1', 'GR2410110920460001', '2024-10-11', 'TEPML030206', 1, 1.00, 'N', '2024-10-11 09:35:06', '2024-10-11 09:35:06');

-- ----------------------------
-- Table structure for Luv2_item_unit
-- ----------------------------
CREATE TABLE "public"."Luv2_item_unit" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "item_code" varchar(30) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "id_unit" int4 NOT NULL,
  "qty" numeric DEFAULT 0,
  "pricebuy" numeric,
  "pricesell" numeric,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "whs_code" varchar(255) COLLATE "pg_catalog"."default" NOT NULL
)
;

-- ----------------------------
-- Records of Luv2_item_unit
-- ----------------------------
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'UUXD834533', 1, 12, 0, 0, '2024-09-03 03:35:41.32089', '2024-09-03 03:35:41.32089', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'USSE514348', 1, 12, 0, 0, '2024-09-03 03:35:41.32089', '2024-09-03 03:35:41.32089', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'TTAM752062', 1, 12, 0, 0, '2024-09-03 03:35:41.32089', '2024-09-03 03:35:41.32089', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'TSRL380588', 1, 12, 0, 0, '2024-09-03 03:35:41.32089', '2024-09-03 03:35:41.32089', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'TOIS476739', 1, 12, 0, 0, '2024-09-03 03:35:41.32089', '2024-09-03 03:35:41.32089', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'TFQG886337', 1, 12, 0, 0, '2024-09-03 03:35:41.32089', '2024-09-03 03:35:41.32089', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'SYEG625952', 1, 12, 0, 0, '2024-09-03 03:35:41.32089', '2024-09-03 03:35:41.32089', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'SJQY923758', 1, 12, 0, 0, '2024-09-03 03:35:41.32089', '2024-09-03 03:35:41.32089', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'RTND609516', 1, 12, 0, 0, '2024-09-03 03:35:41.32089', '2024-09-03 03:35:41.32089', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'USCG701628', 2, 5, 0, 0, '2024-09-03 03:35:41.32089', '2024-09-03 10:41:57', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'SAXQ706219', 1, 12, 1000, 0, '2024-09-03 03:35:41.32089', '2024-09-11 14:22:54', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'ZVGD761463', 2, 4, 2000, 0, '2024-09-03 03:35:41.32089', '2024-09-11 14:22:54', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'YELA179001', 1, 12, 2000, 0, '2024-09-03 03:35:41.32089', '2024-09-11 14:23:23', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'TST1', 2, 5, NULL, NULL, '2024-09-11 15:04:01', '2024-09-11 15:04:01', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'kmab135', 2, 24, 7000, NULL, '2024-09-11 15:39:54', '2024-09-11 15:41:36', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'KMBABC250', 2, 24, NULL, NULL, '2024-09-12 13:44:05', '2024-09-12 13:44:05', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'testarossa', 1, 12, NULL, NULL, '2024-09-12 15:37:11', '2024-09-12 15:37:11', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'TSTUNT1001', 1, 12, 5000, NULL, '2024-09-03 08:53:00', '2024-09-11 14:23:23', 'PIDPADTSM');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'TSTUNT1001', 3, 3, NULL, NULL, '2024-10-08 15:44:24', '2024-10-08 15:44:24', '');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'PRIME110', 3, 2, NULL, NULL, '2024-10-09 10:19:48', '2024-10-09 10:19:48', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'WDME378232', 1, 12, 0, 0, '2024-10-09 10:22:34', '2024-10-09 10:22:34', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'UJGA178326', 1, 12, 0, 0, '2024-10-09 10:24:17', '2024-10-09 10:24:17', 'PIDPAD');
INSERT INTO "public"."Luv2_item_unit" VALUES ('240617104137', 'TEPML020206', 2, 5, NULL, NULL, '2024-10-09 15:49:10', '2024-10-09 15:49:10', 'PIDPAD');

-- ----------------------------
-- Table structure for Luv2_member
-- ----------------------------
CREATE TABLE "public"."Luv2_member" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "code" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "phone" varchar(30) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "email" varchar(50) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "address" varchar(100) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "hobby" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "social_id" int4 DEFAULT 0,
  "active" varchar(1) COLLATE "pg_catalog"."default" NOT NULL DEFAULT 'Y'::character varying,
  "created_at" timestamp(0),
  "updated_at" timestamp(0)
)
;

-- ----------------------------
-- Records of Luv2_member
-- ----------------------------
INSERT INTO "public"."Luv2_member" VALUES ('240617104137', 'PM24070001', 'Galang Anarki', '089621791541', 'galanganarki@gmail.com', 'Jl.inSajaa', 'Menari', 0, 'Y', NULL, NULL);

-- ----------------------------
-- Table structure for Luv2_member_otp
-- ----------------------------
CREATE TABLE "public"."Luv2_member_otp" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "member_code" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "otp" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "expired_at" timestamp(6)
)
;

-- ----------------------------
-- Records of Luv2_member_otp
-- ----------------------------
INSERT INTO "public"."Luv2_member_otp" VALUES ('', 'PM24070001', '741042', '2024-09-19 15:41:22', NULL, '2024-09-19 15:46:22');

-- ----------------------------
-- Table structure for Luv2_opname
-- ----------------------------
CREATE TABLE "public"."Luv2_opname" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "date" date,
  "whs_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "remark" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "qty" numeric DEFAULT 0,
  "opname" numeric DEFAULT 0,
  "difference" numeric DEFAULT 0,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "deleted" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "user_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "adjust" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "adjust_date" date
)
;

-- ----------------------------
-- Records of Luv2_opname
-- ----------------------------
INSERT INTO "public"."Luv2_opname" VALUES ('240617104137', 'OP2407041352002', '2024-07-04', 'PIDPUD', 'rya', 16, 146, 130, '2024-07-04 13:53:28', '2024-07-04 13:53:28', 'N', '240617104137', 'Y', '2024-07-09');
INSERT INTO "public"."Luv2_opname" VALUES ('240617104137', 'OP2407091536002', '2024-07-09', 'PIDPUD', 'yaqin', 16, 144, 128, '2024-07-09 15:36:42', '2024-07-09 15:36:42', 'N', '240617104137', 'N', NULL);
INSERT INTO "public"."Luv2_opname" VALUES ('240617113203', 'OP2407220930001', '2024-07-22', 'PIDPUD', 'ya', -15, 145, 160, '2024-07-22 09:30:27', '2024-07-22 09:30:27', 'N', '24916543213', 'Y', '2024-07-22');
INSERT INTO "public"."Luv2_opname" VALUES ('240617104137', 'OP2409131653003', '2024-09-13', 'PIDPADTSM', 'wa', 66, 40, -26, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'N', '240807133423', 'Y', '2024-09-13');
INSERT INTO "public"."Luv2_opname" VALUES ('240617104137', 'OP2409180939004', '2024-09-18', 'PIDPADTSM', 'tes opname', -109, 145, 254, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'N', '240807133423', 'Y', '2024-09-18');

-- ----------------------------
-- Table structure for Luv2_opname_chunk
-- ----------------------------
CREATE TABLE "public"."Luv2_opname_chunk" (
  "company_code" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "whs_code" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "date" date NOT NULL,
  "code" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "price" numeric(10,2),
  "onhand" numeric(10,0) DEFAULT 0.00,
  "opname" numeric(10,0) DEFAULT 0.00,
  "difference" numeric(10,0) DEFAULT 0.00,
  "user_code" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "barcode" varchar(254) COLLATE "pg_catalog"."default",
  "name" varchar(100) COLLATE "pg_catalog"."default",
  "type" varchar(10) COLLATE "pg_catalog"."default" NOT NULL,
  "linenum" varchar(255) COLLATE "pg_catalog"."default"
)
;

-- ----------------------------
-- Records of Luv2_opname_chunk
-- ----------------------------

-- ----------------------------
-- Table structure for Luv2_opname_detail
-- ----------------------------
CREATE TABLE "public"."Luv2_opname_detail" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "item_code" varchar(30) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "price" numeric,
  "qty" numeric DEFAULT 0,
  "opname" numeric DEFAULT 0,
  "difference" numeric DEFAULT 0,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "item_barcode" varchar(30) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "item_name" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "type" varchar(255) COLLATE "pg_catalog"."default",
  "linenum" int4 DEFAULT 0
)
;

-- ----------------------------
-- Records of Luv2_opname_detail
-- ----------------------------
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'kmab135', 12000, 42.00, 0, -42, '2024-09-13 16:53:32', '2024-09-13 16:53:32', '12123123', 'KECAP MANIS ABC BOTOL 135ML', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'KMBABC250', 20000, 0, 0, 0, '2024-09-13 16:53:32', '2024-09-13 16:53:32', '12123434', 'KECAP MANIS BOTOL BESAR 250ML', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'RTND609516', 426787, -2.00, 6, 8.00, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'PDEW190716', 'CBORA1 46 S LAZE VOLLEY', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'SAXQ706219', 273142, -136.00, 3, 139.00, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'IKVT544376', 'GBOAQ8 3282 S MIAMI VIBES BOARDIE', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'SJQY923758', 128799, 3.00, 0, -3.00, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'SYEG625952', 491933, 0, 4, 4, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'LXAK235631', 'TCTC75 90 42 SURF REVIVAL', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'testarossa', 0, 0, 0, 0, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'TESTAROSSA123', 'Testarozza', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'TFQG886337', 483592, 0, 1, 1, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'TFEE179404', 'WLY8JW 1221 14 NALU CAP SL UV', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'TOIS476739', 320933, 0, 4, 4, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'FGUM919449', '19SMOT 8266 41 DBAH LITE ECO OPEN TOE', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'TSRL380588', 260406, 0, 4, 4, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'RXJB419881', 'GWABM9 830 S INFAMOUS SHORT', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'TSTUNT1001', 2500, 140.00, 0, -140.00, '2024-09-13 16:53:32', '2024-09-13 16:53:32', '1T0S0T1UTN', 'Mizu Air', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'TTAM752062', 254079, -25.00, 3, 28.00, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'TIRQ522047', 'OTEWA2 8264 4 BEACH SCRIPT TEE-GROMS', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'UJGA178326', 213289, 0, 1, 1, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'YYCP701100', 'GTEDG0-78-L BALI SUNNY PARADISE TEE', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'USCG701628', 347573, 0, 4, 4, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'WHLA173508', 'TGTE93 70 38 BEACH BELLA', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'USSE514348', 374024, 0, 0, 0, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'WLJW830833', 'CBOTL9 40 36 MIRAGE MEDINA ULTIMATE', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'UUXD834533', 221512, 0, 6, 6, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'WJSX710203', 'GWANC9 830 M CLASSIC SURF SHORT', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'WDME378232', 293604, -6.00, 1, 7.00, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'CMFF641701', 'CTEYD9 49 XL STAPLE MUSCLE', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'YELA179001', 490137, 41.00, 3, -38.00, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'NDJP886788', 'WLY7GW 70 14 TROPIC GLITCH CAP SLEEVE', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409131653003', 'ZVGD761463', 422624, 9.00, 0, -9.00, '2024-09-13 16:53:32', '2024-09-13 16:53:32', 'AHOY246195', 'CWALX1 1080 XL ORBIT DENIM 18 ELASTIC WALKSHORT', 'Global', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'AUGH838467', 499000.000000000000, 0, 2, 2, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'KVAL285031', '123WOT 1000 40 NAMOTU OPEN TOE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'AUKP225825', 499000.000000000000, 0, 8, 8, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'FJXU253573', 'TGTE87 4093 37 GLITTER STRAP', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'AWXH653014', 499000.000000000000, 0, 0, 0, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'BENG331573', 'GWABM9 830 S INFAMOUS SHORT', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'BGSJ287063', 499000.000000000000, 0, 3, 3, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'XVKL336617', 'CSHFR7 90 S PALM POINT S/S SHIRT', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'BKYM971025', 499000.000000000000, 0, 0, 0, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'DVJW466211', 'GPADP1 90 12 ANTI SERIES SOUTHSIDE LEG', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'CDZY211020', 499000.000000000000, 0, 2, 2, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'LTJK240155', 'GTENZ1 8543 8 PLAINS TEE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'CFUH361835', 499000.000000000000, 0, 3, 3, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'ARKX394653', 'CTEYD9 49 XL STAPLE MUSCLE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'DCWF431594', 499000.000000000000, 0, 3, 3, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'TFKZ260735', 'TCTC75 90 42 SURF REVIVAL', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'DNQE279566', 499000.000000000000, 4.00, 2, -2.00, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'MSGN616087', 'GWANC9 830 M CLASSIC SURF SHORT', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'EFSC485317', 499000.000000000000, 0, 1, 1, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'DWZL625128', '19SMOT 8266 41 DBAH LITE ECO OPEN TOE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'FHBE272687', 499000.000000000000, 0, 3, 3, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'FYXS623576', 'GTEHP9 90 8 RC CUP 2018 POSTER TEE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'FXUV416459', 499000.000000000000, 0, 4, 4, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'YEDW937658', '005BBO 8264 10 COSMIC TIDES VOLLEY -BOY', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'HCBG435626', 499000.000000000000, 0, 3, 3, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'OEPS775840', 'GPADP1 90 12 ANTI SERIES SOUTHSIDE LEG', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'HNET596950', 499000.000000000000, 0, 2, 2, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'YNOZ559284', 'TGTE87 4093 37 GLITTER STRAP', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'HYEJ983915', 499000.000000000000, 0, 4, 4, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'HXPE176575', 'CWALX1 8264 S WASHED BLACK', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'IQUB368808', 499000.000000000000, 1.00, 1, 0.00, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'PKMY958526', 'JTEAV9 3021 12 SUMMER PRINT TEE-GIRL', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'JNAB849429', 499000.000000000000, 0, 0, 0, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'ZKQV479329', 'CBORA1 46 S LAZE VOLLEY', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'JYJW294912', 499000.000000000000, 0, 2, 2, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'JOIH316166', 'CTESC2 1000 XL ALL TIME TEE-VC', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'KhangKhung', 499000.000000000000, 0, 2, 2, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'QTHT619901', 'GSKAJ9 90 10 BLACKY SKIRT', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'KIUX313255', 499000.000000000000, 0, 3, 3, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'IMGC764216', 'TGTE93 70 38 BEACH BELLA', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'KQBS685127', 499000.000000000000, 0, 2, 2, '2024-09-18 09:39:46', '2024-09-18 09:39:46', 'GWHS715220', 'GTEKF9 8264 XS AUTHENTIC SURF OS TEE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'LCSQ948056', 499000.000000000000, 0, 0, 0, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'RUBU380499', 'WLU5AW 8264 6 SUNSET WAVES LONG SLEEVE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'LQFD727995', 499000.000000000000, 0, 0, 0, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'MPGD251929', 'OBOMX1 4568 4 DREAMERS 16 VOLLEY-GROMS', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'MFCN958908', 499000.000000000000, 1.00, 4, 3.00, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'WKRJ527691', 'CTEOU2 90 M OFF STACKED TEE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'MFKH348597', 499000.000000000000, 0, 19, 19, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'HFNP431259', 'CTEFV0 1221 XL BALI CURVE TEE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'MKBQ217561', 499000.000000000000, 0, 6, 6, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'SULB490779', 'OTEWA2 8264 4 BEACH SCRIPT TEE-GROMS', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'MOVJ124696', 499000.000000000000, 0, 4, 4, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'LMAP346343', 'CBOBG9 49 36 RAPTURE LAYDAY', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'NDVF327415', 499000.000000000000, 0, 0, 0, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'IOZZ684269', 'GTEKF9 8264 XS AUTHENTIC SURF OS TEE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'NGVO879244', 499000.000000000000, 0, 2, 2, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'ENVZ239610', 'OBOMX1 4568 4 DREAMERS 16 VOLLEY-GROMS', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'NZXR601751', 499000.000000000000, 0, 4, 4, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'PEIK257837', '00MBTE-90-12 RAYS AND HAZED TEE -BOY', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'PKXL193469', 499000.000000000000, 0, 2, 2, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'QTFX985113', 'WLU5AW 8264 6 SUNSET WAVES LONG SLEEVE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'PQIX379263', 499000.000000000000, 0, 1, 1, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'AGPP345084', 'CWALX1 8264 S WASHED BLACK', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'PUPF280749', 499000.000000000000, 0, 3, 3, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'GDQF844242', 'CTEFV0 1221 XL BALI CURVE TEE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'PWPY507519', 499000.000000000000, 0, 9, 9, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'EUVP173657', 'GSHDJ1 4094 14 LARNI SHIRT', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'QALC748146', 499000.000000000000, 0, 1, 1, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'SIEG144117', 'WLY8JW 1221 14 NALU CAP SL UV', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'QKKL115295', 499000.000000000000, 0, 0, 0, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'RWAR892197', 'GBOEJ1 3155 L SURF ESSENTIALS II 3 BOARDSHORT', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'RTND609516', 499000.000000000000, -2.00, 6, 8.00, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'PDEW190716', 'CBOTL9 40 36 MIRAGE MEDINA ULTIMATE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'SAXQ706219', 499000.000000000000, -136.00, 3, 139.00, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'IKVT544376', '00BMTE 8264 XXL COSMIC BURST TEE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'SJQY923758', 499000.000000000000, 3.00, 0, -3.00, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'DLQV501208', 'GFECM7 174 10 BEACH BREAK CREW', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'SYEG625952', 499000.000000000000, 0, 4, 4, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'LXAK235631', 'TCTC75 90 42 SURF REVIVAL', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'TFQG886337', 499000.000000000000, 0, 1, 1, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'TFEE179404', 'WLY8JW 1221 14 NALU CAP SL UV', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'TOIS476739', 499000.000000000000, 0, 4, 4, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'FGUM919449', '19SMOT 8266 41 DBAH LITE ECO OPEN TOE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'TSRL380588', 499000.000000000000, 0, 4, 4, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'RXJB419881', 'GWABM9 830 S INFAMOUS SHORT', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'TTAM752062', 499000.000000000000, -24.00, 3, 27.00, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'TIRQ522047', 'LSBQD1 90 ALL ESSENTIALS DUAL CROSS BODY BAG 1.8L', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'UJGA178326', 499000.000000000000, 0, 1, 1, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'YYCP701100', 'GTEDG0-78-L BALI SUNNY PARADISE TEE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'USCG701628', 499000.000000000000, 0, 4, 4, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'WHLA173508', 'TGTE93 70 38 BEACH BELLA', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'UUXD834533', 499000.000000000000, 0, 6, 6, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'WJSX710203', 'GWANC9 830 M CLASSIC SURF SHORT', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'WDME378232', 499000.000000000000, -6.00, 1, 7.00, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'CMFF641701', 'GTEDG0-78-L BALI SUNNY PARADISE TEE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'YELA179001', 499000.000000000000, 41.00, 3, -38.00, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'NDJP886788', 'LTB053 ALL WAVE LOVE W TAIL WHALE', 'Partial', 0);
INSERT INTO "public"."Luv2_opname_detail" VALUES ('240617104137', 'OP2409180939004', 'ZVGD761463', 499000.000000000000, 9.00, 0, -9.00, '2024-09-18 09:39:47', '2024-09-18 09:39:47', 'AHOY246195', 'JTEDN1 8976 14 TEEN SEABREEZE TANK', 'Partial', 0);

-- ----------------------------
-- Table structure for Luv2_opname_detail_temp
-- ----------------------------
CREATE TABLE "public"."Luv2_opname_detail_temp" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "item_code" varchar(30) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "price" numeric,
  "qty" numeric DEFAULT 0,
  "opname" numeric DEFAULT 0,
  "difference" numeric DEFAULT 0,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "user_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "item_barcode" varchar(30) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "item_name" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "type" varchar(255) COLLATE "pg_catalog"."default"
)
;

-- ----------------------------
-- Records of Luv2_opname_detail_temp
-- ----------------------------
INSERT INTO "public"."Luv2_opname_detail_temp" VALUES ('240617104137', 'OP2409061405003', 'TSTUNT1001', 2500, 120.00, 0, -120.00, '2024-09-06 00:00:00', NULL, '240617104138', '1T0S0T1UTN', 'Mizu Air', 'Global');
INSERT INTO "public"."Luv2_opname_detail_temp" VALUES ('240617104137', 'OP2409061405003', 'USSE514348', 374024, 0, 0, 0, '2024-09-06 00:00:00', NULL, '240617104138', 'WLJW830833', 'CBOTL9 40 36 MIRAGE MEDINA ULTIMATE', 'Global');
INSERT INTO "public"."Luv2_opname_detail_temp" VALUES ('240617104137', 'OP2409061405003', 'RTND609516', 426787, -1.00, 6, 7.00, '2024-09-06 00:00:00', NULL, '240617104138', 'PDEW190716', 'CBORA1 46 S LAZE VOLLEY', 'Global');
INSERT INTO "public"."Luv2_opname_detail_temp" VALUES ('240617104137', 'OP2409061405003', 'SAXQ706219', 273142, -13.00, 3, 16.00, '2024-09-06 00:00:00', NULL, '240617104138', 'IKVT544376', 'GBOAQ8 3282 S MIAMI VIBES BOARDIE', 'Global');
INSERT INTO "public"."Luv2_opname_detail_temp" VALUES ('240617104137', 'OP2409061405003', 'SJQY923758', 128799, 3.00, 0, -3.00, '2024-09-06 00:00:00', NULL, '240617104138', 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', 'Global');
INSERT INTO "public"."Luv2_opname_detail_temp" VALUES ('240617104137', 'OP2409061405003', 'SYEG625952', 491933, 0, 4, 4, '2024-09-06 00:00:00', NULL, '240617104138', 'LXAK235631', 'TCTC75 90 42 SURF REVIVAL', 'Global');
INSERT INTO "public"."Luv2_opname_detail_temp" VALUES ('240617104137', 'OP2409061405003', 'TFQG886337', 483592, 0, 1, 1, '2024-09-06 00:00:00', NULL, '240617104138', 'TFEE179404', 'WLY8JW 1221 14 NALU CAP SL UV', 'Global');
INSERT INTO "public"."Luv2_opname_detail_temp" VALUES ('240617104137', 'OP2409061405003', 'TOIS476739', 320933, 0, 4, 4, '2024-09-06 00:00:00', NULL, '240617104138', 'FGUM919449', '19SMOT 8266 41 DBAH LITE ECO OPEN TOE', 'Global');
INSERT INTO "public"."Luv2_opname_detail_temp" VALUES ('240617104137', 'OP2409061405003', 'TSRL380588', 260406, 0, 4, 4, '2024-09-06 00:00:00', NULL, '240617104138', 'RXJB419881', 'GWABM9 830 S INFAMOUS SHORT', 'Global');
INSERT INTO "public"."Luv2_opname_detail_temp" VALUES ('240617104137', 'OP2409061405003', 'TTAM752062', 254079, -1.00, 3, 4.00, '2024-09-06 00:00:00', NULL, '240617104138', 'TIRQ522047', 'OTEWA2 8264 4 BEACH SCRIPT TEE-GROMS', 'Global');
INSERT INTO "public"."Luv2_opname_detail_temp" VALUES ('240617104137', 'OP2409061405003', 'UJGA178326', 213289, 0, 1, 1, '2024-09-06 00:00:00', NULL, '240617104138', 'YYCP701100', 'GTEDG0-78-L BALI SUNNY PARADISE TEE', 'Global');
INSERT INTO "public"."Luv2_opname_detail_temp" VALUES ('240617104137', 'OP2409061405003', 'USCG701628', 347573, 0, 4, 4, '2024-09-06 00:00:00', NULL, '240617104138', 'WHLA173508', 'TGTE93 70 38 BEACH BELLA', 'Global');
INSERT INTO "public"."Luv2_opname_detail_temp" VALUES ('240617104137', 'OP2409061405003', 'UUXD834533', 221512, 0, 6, 6, '2024-09-06 00:00:00', NULL, '240617104138', 'WJSX710203', 'GWANC9 830 M CLASSIC SURF SHORT', 'Global');
INSERT INTO "public"."Luv2_opname_detail_temp" VALUES ('240617104137', 'OP2409061405003', 'WDME378232', 293604, 0, 1, 1, '2024-09-06 00:00:00', NULL, '240617104138', 'CMFF641701', 'CTEYD9 49 XL STAPLE MUSCLE', 'Global');
INSERT INTO "public"."Luv2_opname_detail_temp" VALUES ('240617104137', 'OP2409061405003', 'YELA179001', 490137, 35.00, 3, -32.00, '2024-09-06 00:00:00', NULL, '240617104138', 'NDJP886788', 'WLY7GW 70 14 TROPIC GLITCH CAP SLEEVE', 'Global');
INSERT INTO "public"."Luv2_opname_detail_temp" VALUES ('240617104137', 'OP2409061405003', 'ZVGD761463', 422624, -1.00, 0, 1.00, '2024-09-06 00:00:00', NULL, '240617104138', 'AHOY246195', 'CWALX1 1080 XL ORBIT DENIM 18 ELASTIC WALKSHORT', 'Global');

-- ----------------------------
-- Table structure for Luv2_posregister
-- ----------------------------
CREATE TABLE "public"."Luv2_posregister" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "whs_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "name" varchar(50) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "printer" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "balance" numeric DEFAULT 0,
  "active" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying
)
;

-- ----------------------------
-- Records of Luv2_posregister
-- ----------------------------

-- ----------------------------
-- Table structure for Luv2_pricelist
-- ----------------------------
CREATE TABLE "public"."Luv2_pricelist" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "name" varchar(50) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6)
)
;

-- ----------------------------
-- Records of Luv2_pricelist
-- ----------------------------
INSERT INTO "public"."Luv2_pricelist" VALUES ('240617104137', 'PLInter', 'Pricelist International', '2024-06-24 09:06:19', '2024-06-24 15:25:54');
INSERT INTO "public"."Luv2_pricelist" VALUES ('240617104137', 'PLLocal', 'Pricelist Local', '2024-06-24 09:05:29', '2024-06-24 15:25:54');
INSERT INTO "public"."Luv2_pricelist" VALUES ('240617104137', 'BALI PRICE', 'BALI PRICE', '2024-08-16 09:47:19', '2024-08-16 09:47:19');
INSERT INTO "public"."Luv2_pricelist" VALUES ('240617113203', 'PLInter', 'Pricelist International', '2024-06-24 09:06:19', '2024-06-24 15:25:54');
INSERT INTO "public"."Luv2_pricelist" VALUES ('240617113203', 'PLLocal', 'Pricelist Local', '2024-06-24 09:05:29', '2024-06-24 15:25:54');
INSERT INTO "public"."Luv2_pricelist" VALUES ('240617113203', 'FKR2', 'Fikri 2', '2024-08-15 16:08:29', '2024-08-15 16:08:29');
INSERT INTO "public"."Luv2_pricelist" VALUES ('240617104137', 'LMPR', 'Pricelist Lama', '2024-09-10 11:20:02', '2024-09-10 11:20:02');
INSERT INTO "public"."Luv2_pricelist" VALUES ('240617104137', 'PLiving', 'Pricelist Living', '2024-10-09 14:22:46', '2024-10-09 14:22:46');
INSERT INTO "public"."Luv2_pricelist" VALUES ('240617104137', 'PLsm', 'Pricelist Studio Mall', '2024-10-09 14:22:46', '2024-10-09 14:22:46');

-- ----------------------------
-- Table structure for Luv2_pricelist_temp
-- ----------------------------
CREATE TABLE "public"."Luv2_pricelist_temp" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "name" varchar(50) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "id_user" varchar(255) COLLATE "pg_catalog"."default" NOT NULL
)
;

-- ----------------------------
-- Records of Luv2_pricelist_temp
-- ----------------------------
INSERT INTO "public"."Luv2_pricelist_temp" VALUES ('240617104137', 'PLiving', 'Pricelist Living', '2024-10-09 14:22:46', '2024-10-09 14:22:46', '1');
INSERT INTO "public"."Luv2_pricelist_temp" VALUES ('240617104137', 'PLsm', 'Pricelist Studio Mall', '2024-10-09 14:22:46', '2024-10-09 14:22:46', '1');

-- ----------------------------
-- Table structure for Luv2_promo
-- ----------------------------
CREATE TABLE "public"."Luv2_promo" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "pricelist_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "name" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "from_date" date,
  "to_date" date,
  "deleted" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "tipe" int2 DEFAULT 0,
  "benefit" int2 DEFAULT 0,
  "date" date,
  "disc" numeric DEFAULT 0,
  "disc_price" numeric DEFAULT 0,
  "qty_pack" numeric(10,2) DEFAULT 0,
  "value_pack" numeric(10,2) DEFAULT 0,
  "voucher_from_date" date,
  "voucher_to_date" date,
  "voucher" numeric DEFAULT 0,
  "invoice" varchar(20) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "updated_by" varchar COLLATE "pg_catalog"."default",
  "cheapest_qty" numeric(10,0) DEFAULT 0
)
;

-- ----------------------------
-- Records of Luv2_promo
-- ----------------------------
INSERT INTO "public"."Luv2_promo" VALUES ('240617104137', '240829083938', 'PLInter', 'bundling 2 pack benefit discount 5%', '2024-08-29', '2024-08-29', 'N', 3, 1, '2024-08-29', 5, 0, 2.00, 0.00, NULL, NULL, 0, '', '1', 0);
INSERT INTO "public"."Luv2_promo" VALUES ('240617104137', '240829084222', 'PLInter', 'bundling 2 pack benefit special price 100.000', '2024-08-29', '2024-08-29', 'N', 3, 2, '2024-08-29', 0, 100000, 2.00, 0.00, NULL, NULL, 0, '', '1', 0);
INSERT INTO "public"."Luv2_promo" VALUES ('240617104137', '240829092154', 'PLInter', 'hyya', '2024-08-29', '2024-08-29', 'N', 4, 1, '2024-08-29', 0, 0, 1.00, 0.00, NULL, NULL, 0, '', '1', 0);
INSERT INTO "public"."Luv2_promo" VALUES ('240617104137', '240829093100', 'PLInter', 'gwp qty specialto priceto', '2024-08-29', '2024-08-29', 'N', 4, 1, '2024-08-29', 0, 0, 1.00, 0.00, NULL, NULL, 0, '', '1', 0);
INSERT INTO "public"."Luv2_promo" VALUES ('240617104137', '240829093243', 'PLInter', 'gwp cheapest item 1 pack saja', '2024-08-29', '2024-08-29', 'N', 4, 2, '2024-08-29', 0, 0, 1.00, 0.00, NULL, NULL, 0, '', '1', 0);
INSERT INTO "public"."Luv2_promo" VALUES ('240617104137', '240829082924', 'PLInter', 'waaa', '2024-08-29', '2024-08-29', 'Y', 1, 0, '2024-08-29', 0, 0, 0.00, 0.00, NULL, NULL, 0, '', '1', 0);
INSERT INTO "public"."Luv2_promo" VALUES ('240617104137', '240829135805', 'PLInter', 'yoyo special priceto', '2024-08-29', '2024-08-29', 'N', 2, 0, '2024-08-29', 0, 0, 0.00, 0.00, NULL, NULL, 0, '', '1', 0);
INSERT INTO "public"."Luv2_promo" VALUES ('240617104137', '240829083032', 'PLInter', 'yoyo special priceto', '2024-08-29', '2024-08-29', 'Y', 2, 0, '2024-08-29', 0, 0, 0.00, 0.00, NULL, NULL, 0, '', '1', 0);
INSERT INTO "public"."Luv2_promo" VALUES ('240617104137', '240607075302', 'PLInter', 'Demo Promo Special Price', '2024-06-07', '2024-07-14', 'Y', 2, 0, '2024-06-07', 0, 0, 0.00, 0.00, NULL, NULL, 0, NULL, NULL, 0);
INSERT INTO "public"."Luv2_promo" VALUES ('240617104137', '240612160420', 'PLInter', 'Voucher CashBackTo', '2024-06-07', '2024-06-14', 'Y', 0, 0, '2024-06-12', 0, 0, 0.00, 0.00, '2024-06-07', '2024-07-30', 100000, '', NULL, 0);
INSERT INTO "public"."Luv2_promo" VALUES ('240617104137', '240910115646', 'PLInter', 'a', '2024-09-10', '2024-09-10', 'N', 1, 0, '2024-09-10', 0, 0, 0.00, 0.00, NULL, NULL, 0, '', '1', 0);
INSERT INTO "public"."Luv2_promo" VALUES ('240617104137', '240920142207', '0', 'promo kecap', '2024-09-20', '2024-09-27', 'N', 3, 2, '2024-09-20', 0, 25000, 2.00, 0.00, NULL, NULL, 0, '', '2', 0);
INSERT INTO "public"."Luv2_promo" VALUES ('240617104137', '241018151130', 'PLInter', 'promo test', '2024-10-18', '2024-10-31', 'N', 1, 0, '2024-10-18', 0, 0, 0.00, 0.00, NULL, NULL, 0, '', '2', 0);

-- ----------------------------
-- Table structure for Luv2_promo_bundling_qty
-- ----------------------------
CREATE TABLE "public"."Luv2_promo_bundling_qty" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "qty" int2 NOT NULL DEFAULT 0,
  "disc" numeric DEFAULT 0,
  "disc_price" numeric DEFAULT 0
)
;

-- ----------------------------
-- Records of Luv2_promo_bundling_qty
-- ----------------------------

-- ----------------------------
-- Table structure for Luv2_promo_bundling_qty_temp
-- ----------------------------
CREATE TABLE "public"."Luv2_promo_bundling_qty_temp" (
  "company_code" varchar(255) COLLATE "pg_catalog"."default" NOT NULL DEFAULT 0,
  "qty" int2 NOT NULL DEFAULT 0,
  "disc" numeric DEFAULT 0,
  "disc_price" numeric DEFAULT 0,
  "id_user" int4 NOT NULL DEFAULT 0
)
;

-- ----------------------------
-- Records of Luv2_promo_bundling_qty_temp
-- ----------------------------
INSERT INTO "public"."Luv2_promo_bundling_qty_temp" VALUES ('36', 3, 30, 0, 23);
INSERT INTO "public"."Luv2_promo_bundling_qty_temp" VALUES ('36', 2, 20, 0, 23);
INSERT INTO "public"."Luv2_promo_bundling_qty_temp" VALUES ('30', 2, 10, 0, 19);
INSERT INTO "public"."Luv2_promo_bundling_qty_temp" VALUES ('30', 3, 15, 0, 19);
INSERT INTO "public"."Luv2_promo_bundling_qty_temp" VALUES ('30', 4, 20, 0, 19);

-- ----------------------------
-- Table structure for Luv2_promo_item
-- ----------------------------
CREATE TABLE "public"."Luv2_promo_item" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "item_code" varchar(255) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "disc" numeric DEFAULT 0,
  "disc_price" numeric DEFAULT 0,
  "pack" int2 NOT NULL DEFAULT 0,
  "item_barcode" varchar(255) COLLATE "pg_catalog"."default",
  "item_name" varchar(255) COLLATE "pg_catalog"."default",
  "item_price" numeric(10,2),
  "qty" varchar(1) COLLATE "pg_catalog"."default"
)
;

-- ----------------------------
-- Records of Luv2_promo_item
-- ----------------------------
INSERT INTO "public"."Luv2_promo_item" VALUES ('240617104137', '240607075302', 'SJQY923758', 0.00, 100000, 0, NULL, NULL, NULL, NULL);
INSERT INTO "public"."Luv2_promo_item" VALUES ('240617104137', '240829082924', 'KhangKhung', 5.00, 0.00, 0, 'QTHT619901', '00DWSW 12 XS SURF PALMS CROP KrataKhangkhung', 125000.00, 'N');
INSERT INTO "public"."Luv2_promo_item" VALUES ('240617104137', '240829083032', 'KhangKhung', 0.00, 100000.00, 0, 'QTHT619901', '00DWSW 12 XS SURF PALMS CROP KrataKhangkhung', 125000.00, 'Y');
INSERT INTO "public"."Luv2_promo_item" VALUES ('240617104137', '240829083938', 'SJQY923758', 0, 0, 1, 'DLQV501208', 'GSIXI1 165 12 SUNKESSED PALMS BANDEAU', 128799.00, NULL);
INSERT INTO "public"."Luv2_promo_item" VALUES ('240617104137', '240829083938', 'PWPY507519', 0, 0, 2, 'EUVP173657', 'GSIAT2 1000 8 LOLOMA HI CUT SKIMPY PANT', 154980.00, NULL);
INSERT INTO "public"."Luv2_promo_item" VALUES ('240617104137', '240829084222', 'ZVGD761463', 0, 0, 1, 'AHOY246195', 'CWALX1 1080 XL ORBIT DENIM 18 ELASTIC WALKSHORT', 422624.00, NULL);
INSERT INTO "public"."Luv2_promo_item" VALUES ('240617104137', '240829084222', 'SAXQ706219', 0, 0, 2, 'IKVT544376', 'GBOAQ8 3282 S MIAMI VIBES BOARDIE', 273142.00, NULL);
INSERT INTO "public"."Luv2_promo_item" VALUES ('240617104137', '240829092154', 'KhangKhung', 0, 0, 1, 'QTHT619901', '00DWSW 12 XS SURF PALMS CROP KrataKhangkhung', 125000.00, NULL);
INSERT INTO "public"."Luv2_promo_item" VALUES ('240617104137', '240829093100', 'KhangKhung', 0, 0, 1, 'QTHT619901', '00DWSW 12 XS SURF PALMS CROP KrataKhangkhung', 125000.00, NULL);
INSERT INTO "public"."Luv2_promo_item" VALUES ('240617104137', '240829093243', 'KhangKhung', 0, 0, 1, 'QTHT619901', '00DWSW 12 XS SURF PALMS CROP KrataKhangkhung', 125000.00, NULL);
INSERT INTO "public"."Luv2_promo_item" VALUES ('240617104137', '240829135805', 'CDZY211020', 0.00, 110000.00, 0, 'LTJK240155', 'JSIAA9 30 8 GIRL SURF REVIVAL ONE PIECE', 143714.00, 'N');
INSERT INTO "public"."Luv2_promo_item" VALUES ('240617104137', '240910115646', 'SYEG625952', 5.00, 0.00, 0, 'LXAK235631', 'TCTC75 90 42 SURF REVIVAL', 491933.00, 'N');
INSERT INTO "public"."Luv2_promo_item" VALUES ('240617104137', '240920142207', 'kmab135', 0, 0, 1, '12123123', 'KECAP MANIS ABC BOTOL 135ML', 12000.00, NULL);
INSERT INTO "public"."Luv2_promo_item" VALUES ('240617104137', '240920142207', 'KMBABC250', 0, 0, 2, '12123434', 'KECAP MANIS BOTOL BESAR 250ML', 20000.00, NULL);
INSERT INTO "public"."Luv2_promo_item" VALUES ('240617104137', '241018151130', 'TEPML040206', 0.00, 0.00, 0, '91010204020601', 'BALINESE DRAGON', 289000.00, 'Y');

-- ----------------------------
-- Table structure for Luv2_promo_item_gwp
-- ----------------------------
CREATE TABLE "public"."Luv2_promo_item_gwp" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(12) COLLATE "pg_catalog"."default" NOT NULL,
  "item_code" varchar(30) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "item_barcode" varchar(30) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "item_name" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "tipe" int2 NOT NULL DEFAULT 0,
  "disc" numeric(10,2) DEFAULT 0,
  "disc_price" numeric(10,2) DEFAULT 0
)
;

-- ----------------------------
-- Records of Luv2_promo_item_gwp
-- ----------------------------
INSERT INTO "public"."Luv2_promo_item_gwp" VALUES ('240617104137', '240829092154', 'SAXQ706219', 'IKVT544376', 'GBOAQ8 3282 S MIAMI VIBES BOARDIE', 4, 5.00, 0.00);
INSERT INTO "public"."Luv2_promo_item_gwp" VALUES ('240617104137', '240829093100', 'SAXQ706219', 'IKVT544376', 'GBOAQ8 3282 S MIAMI VIBES BOARDIE', 4, 0.00, 100000.00);

-- ----------------------------
-- Table structure for Luv2_promo_item_gwp_temp
-- ----------------------------
CREATE TABLE "public"."Luv2_promo_item_gwp_temp" (
  "company_code" varchar(255) COLLATE "pg_catalog"."default" NOT NULL DEFAULT 0,
  "id_user" int4 NOT NULL DEFAULT 0,
  "item_code" varchar(50) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "item_barcode" varchar(225) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "item_name" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "tipe" int2 NOT NULL DEFAULT 0,
  "disc" numeric(10,2) DEFAULT 0,
  "disc_price" numeric(10,2) DEFAULT 0
)
;

-- ----------------------------
-- Records of Luv2_promo_item_gwp_temp
-- ----------------------------
INSERT INTO "public"."Luv2_promo_item_gwp_temp" VALUES ('36', 23, 'BDPUC090017', '93122909001705', 'PARALLEL STRIPES', 5, 0.00, 0.00);
INSERT INTO "public"."Luv2_promo_item_gwp_temp" VALUES ('31', 20, '8994826974299', '8994826974299', '1DZMHE 8112 XL SWC SURF BUCKET HAT', 5, 0.00, 0.00);
INSERT INTO "public"."Luv2_promo_item_gwp_temp" VALUES ('30', 19, 'SRPMT040015', '91110304001505', 'PALM CINO CANVAS BROWN', 5, 0.00, 49000.00);
INSERT INTO "public"."Luv2_promo_item_gwp_temp" VALUES ('30', 19, 'SRPMT050018', '91110305001805', 'PALM CINO CANVAS GREEN', 5, 50.00, 0.00);

-- ----------------------------
-- Table structure for Luv2_promo_item_qty
-- ----------------------------
CREATE TABLE "public"."Luv2_promo_item_qty" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "item_code" varchar(50) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "qty" numeric NOT NULL DEFAULT 0,
  "disc" numeric DEFAULT 0,
  "disc_price" numeric DEFAULT 0
)
;

-- ----------------------------
-- Records of Luv2_promo_item_qty
-- ----------------------------
INSERT INTO "public"."Luv2_promo_item_qty" VALUES ('240617104137', '240829083032', 'KhangKhung', 2, 0, 90000);
INSERT INTO "public"."Luv2_promo_item_qty" VALUES ('240617104137', '241018151130', 'TEPML040206', 1, 0, 0);
INSERT INTO "public"."Luv2_promo_item_qty" VALUES ('240617104137', '241018151130', 'TEPML040206', 2, 10, 0);

-- ----------------------------
-- Table structure for Luv2_promo_item_qty_temp
-- ----------------------------
CREATE TABLE "public"."Luv2_promo_item_qty_temp" (
  "company_code" varchar(255) COLLATE "pg_catalog"."default" NOT NULL DEFAULT 0,
  "item_code" varchar(50) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "qty" numeric NOT NULL DEFAULT 0,
  "disc" numeric DEFAULT 0,
  "disc_price" numeric DEFAULT 0,
  "tipe" int2 NOT NULL DEFAULT 0,
  "id_user" int4 NOT NULL DEFAULT 0
)
;

-- ----------------------------
-- Records of Luv2_promo_item_qty_temp
-- ----------------------------
INSERT INTO "public"."Luv2_promo_item_qty_temp" VALUES ('30', 'TEPML040071', 3, 15, 0, 1, 19);
INSERT INTO "public"."Luv2_promo_item_qty_temp" VALUES ('30', 'TEPML040071', 6, 20, 0, 1, 19);
INSERT INTO "public"."Luv2_promo_item_qty_temp" VALUES ('30', 'MAPWC020004', 3, 15, 0, 1, 19);
INSERT INTO "public"."Luv2_promo_item_qty_temp" VALUES ('30', 'MAPWC020004', 6, 20, 0, 1, 19);
INSERT INTO "public"."Luv2_promo_item_qty_temp" VALUES ('39', '8994826873882', 3, 10, 0, 1, 26);

-- ----------------------------
-- Table structure for Luv2_promo_item_temp
-- ----------------------------
CREATE TABLE "public"."Luv2_promo_item_temp" (
  "company_code" varchar(255) COLLATE "pg_catalog"."default" NOT NULL DEFAULT 0,
  "item_code" varchar(50) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "disc" numeric(10,2) DEFAULT 0,
  "disc_price" numeric(10,2) DEFAULT 0,
  "pack" int2 NOT NULL DEFAULT 0,
  "tipe" int2 NOT NULL DEFAULT 0,
  "id_user" int4 NOT NULL DEFAULT 0,
  "item_barcode" varchar(254) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "item_name" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "item_price" numeric(10,2) DEFAULT 0,
  "qty" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying
)
;

-- ----------------------------
-- Records of Luv2_promo_item_temp
-- ----------------------------
INSERT INTO "public"."Luv2_promo_item_temp" VALUES ('36', 'SDPMT040064', 0.00, 45000.00, 0, 2, 23, '91121404006406', 'PALM CHEVRON GRADATION FLIPFLOP BLACK', 129000.00, NULL);
INSERT INTO "public"."Luv2_promo_item_temp" VALUES ('36', 'SDPWC010080', 0.00, 0.00, 1, 3, 23, '92121401008006', 'PALM ENAMEL FLIPFLOP BLACK', 99000.00, NULL);
INSERT INTO "public"."Luv2_promo_item_temp" VALUES ('36', 'SDPWC010080', 0.00, 0.00, 2, 3, 23, '92121401008006', 'PALM ENAMEL FLIPFLOP BLACK', 99000.00, NULL);
INSERT INTO "public"."Luv2_promo_item_temp" VALUES ('36', 'SDPWC010080', 0.00, 0.00, 3, 3, 23, '92121401008006', 'PALM ENAMEL FLIPFLOP BLACK', 99000.00, NULL);
INSERT INTO "public"."Luv2_promo_item_temp" VALUES ('36', 'SDPWC010086', 0.00, 0.00, 2, 3, 23, '92121401008606', 'PALM HAWAIIAN FLIPFLOP BLACK', 99000.00, NULL);
INSERT INTO "public"."Luv2_promo_item_temp" VALUES ('36', 'SDPWC020076', 0.00, 0.00, 0, 7, 23, '92121402007606', 'PALM TROPICAL FRUIT SANDAL GREY', 0.00, NULL);
INSERT INTO "public"."Luv2_promo_item_temp" VALUES ('36', 'SDPWC010084', 0.00, 0.00, 0, 7, 23, '92121401008406', 'PALM ZEBRA FLIPFLOP GOLD', 0.00, NULL);
INSERT INTO "public"."Luv2_promo_item_temp" VALUES ('30', 'TEPML040071', 10.00, 0.00, 0, 1, 19, '910202040010101', 'BIT ME TSHIRT', 215000.00, NULL);
INSERT INTO "public"."Luv2_promo_item_temp" VALUES ('40', 'TEPML040163', 0.00, 0.00, 1, 3, 27, '91140204016301', 'NEOTICAL', 349000.00, NULL);
INSERT INTO "public"."Luv2_promo_item_temp" VALUES ('30', 'MAPWC020004', 10.00, 0.00, 0, 1, 19, '114218009', 'PALM TRACY IN TROPICAL LIQUORISH', 499000.00, NULL);
INSERT INTO "public"."Luv2_promo_item_temp" VALUES ('39', '8994826873882', 5.00, 0.00, 0, 1, 26, '8994826873882', 'JFEAI9 8033 14 SCRIPT HOODY-GIRL', 279000.00, NULL);
INSERT INTO "public"."Luv2_promo_item_temp" VALUES ('240617104137', 'KhangKhung', 0.00, 0.00, 1, 4, 1, 'QTHT619901', '00DWSW 12 XS SURF PALMS CROP KrataKhangkhung', 125000.00, NULL);
INSERT INTO "public"."Luv2_promo_item_temp" VALUES ('240617104137', 'CDZY211020', 0.00, 110000.00, 0, 2, 1, 'LTJK240155', 'JSIAA9 30 8 GIRL SURF REVIVAL ONE PIECE', 143714.00, 'N');
INSERT INTO "public"."Luv2_promo_item_temp" VALUES ('240617104137', 'SYEG625952', 5.00, 0.00, 0, 1, 1, 'LXAK235631', 'TCTC75 90 42 SURF REVIVAL', 491933.00, 'N');
INSERT INTO "public"."Luv2_promo_item_temp" VALUES ('240617104137', 'kmab135', 0.00, 0.00, 1, 3, 2, '12123123', 'KECAP MANIS ABC BOTOL 135ML', 12000.00, NULL);
INSERT INTO "public"."Luv2_promo_item_temp" VALUES ('240617104137', 'KMBABC250', 0.00, 0.00, 2, 3, 2, '12123434', 'KECAP MANIS BOTOL BESAR 250ML', 20000.00, NULL);

-- ----------------------------
-- Table structure for Luv2_promo_voucher
-- ----------------------------
CREATE TABLE "public"."Luv2_promo_voucher" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "voucher" varchar(50) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "value" numeric DEFAULT 0,
  "used" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying
)
;

-- ----------------------------
-- Records of Luv2_promo_voucher
-- ----------------------------
INSERT INTO "public"."Luv2_promo_voucher" VALUES ('240617104137', '240612160420', '74cvBKhXPWjpJ', 100000, 'Y');

-- ----------------------------
-- Table structure for Luv2_promo_voucher_temp
-- ----------------------------
CREATE TABLE "public"."Luv2_promo_voucher_temp" (
  "company_code" varchar(255) COLLATE "pg_catalog"."default" NOT NULL DEFAULT 0,
  "id_user" int4 NOT NULL DEFAULT 0,
  "voucher" varchar(50) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "value" numeric DEFAULT 0
)
;

-- ----------------------------
-- Records of Luv2_promo_voucher_temp
-- ----------------------------

-- ----------------------------
-- Table structure for Luv2_promo_whs
-- ----------------------------
CREATE TABLE "public"."Luv2_promo_whs" (
  "no" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "company_code" varchar(255) COLLATE "pg_catalog"."default" DEFAULT 0,
  "whs_code" varchar COLLATE "pg_catalog"."default" DEFAULT ''::character varying
)
;

-- ----------------------------
-- Records of Luv2_promo_whs
-- ----------------------------
INSERT INTO "public"."Luv2_promo_whs" VALUES ('240829092154', '240617104137', 'PIDPAD');
INSERT INTO "public"."Luv2_promo_whs" VALUES ('240829135805', '240617104137', 'PIDPAD');
INSERT INTO "public"."Luv2_promo_whs" VALUES ('240910115646', '240617104137', 'PIDPAD');
INSERT INTO "public"."Luv2_promo_whs" VALUES ('240920142207', '240617104137', 'PIDPAD');
INSERT INTO "public"."Luv2_promo_whs" VALUES ('241018151130', '240617104137', 'PIDPAD');
INSERT INTO "public"."Luv2_promo_whs" VALUES ('240829093100', '240617104137', 'PIDPAD');
INSERT INTO "public"."Luv2_promo_whs" VALUES ('240829093243', '240617104137', 'PIDPAD');
INSERT INTO "public"."Luv2_promo_whs" VALUES ('240829082924', '240617104137', 'PIDPAD');
INSERT INTO "public"."Luv2_promo_whs" VALUES ('240829083032', '240617104137', 'PIDPAD');
INSERT INTO "public"."Luv2_promo_whs" VALUES ('240829083938', '240617104137', 'PIDPAD');
INSERT INTO "public"."Luv2_promo_whs" VALUES ('240829084222', '240617104137', 'PIDPAD');

-- ----------------------------
-- Table structure for Luv2_receipt
-- ----------------------------
CREATE TABLE "public"."Luv2_receipt" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "date" date,
  "due_date" date,
  "whs_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "supp_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "remark" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "qty" numeric DEFAULT 0,
  "disc" numeric DEFAULT 0,
  "total" numeric DEFAULT 0,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "deleted" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "user_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
)
;

-- ----------------------------
-- Records of Luv2_receipt
-- ----------------------------
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2410110920460001', '2024-10-11', NULL, 'PIDPAD', 'CCCL2CMP2', 'a', 1, 0, 122222, '2024-10-11 09:35:06', '2024-10-11 09:35:06', 'N', '240807133999');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2406271422001', '2024-06-27', NULL, 'PIDPAD', 'BJPT', 'Barang dari PTBJ to Pidi Pada', 20, 0, 7323112, '2024-06-27 14:22:43', '2024-06-27 14:22:43', 'N', '240617104137');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2406271434001', '2024-06-27', NULL, 'PIDPAD', 'BJPT', '-', 55668, 0, 17034113506, '2024-06-27 14:34:05', '2024-06-27 14:34:05', 'N', '240617104137');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2407041206001', '2024-07-04', NULL, 'PIDPAD', 'CCCL2', '-', 4, 0, 1258180, '2024-07-04 12:06:14', '2024-07-04 12:06:14', 'N', '240617104137');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2409041039170002', '2024-09-04', NULL, 'PIDPAD', 'BGCL1', 'atata', 0, 0, 2880000, '2024-09-04 10:39:40', '2024-09-04 10:39:40', 'N', '240617104137');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2409041048260003', '2024-09-04', NULL, 'PIDPAD', 'CCCL2', 'mizuliving', 0, 0, 1920000, '2024-09-04 10:49:01', '2024-09-04 10:49:01', 'N', '240617104137');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2409041051150004', '2024-09-04', NULL, 'PIDPAD', 'BGCL1', 'a', 0, 0, 1080000, '2024-09-04 10:52:20', '2024-09-04 10:52:20', 'N', '240617104137');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2408301500260001', '2024-08-30', NULL, 'PIDPAD', 'BJPT', 'yahud', 7, 0, 95000, '2024-08-30 15:04:55', '2024-08-30 15:04:55', 'Y', '240617104137');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2409021007150001', '2024-09-02', NULL, 'PIDPAD', 'BGCL1', 'ah', 2, 0, 4000, '2024-09-02 10:07:57', '2024-09-02 10:07:57', 'N', '240617104137');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2409040820280001', '2024-09-04', NULL, 'PIDPAD', 'CCCL2', 'ga', 0, 0, 144000, '2024-09-04 10:34:39', '2024-09-04 10:34:39', 'N', '240617104137');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2409100903050001', '2024-09-09', NULL, 'PIDPAD', 'BJPT', 'tes1', 5, 0, 50000, '2024-09-10 09:04:07', '2024-09-10 09:04:07', 'N', '240617104137');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2409100904130002', '2024-09-10', NULL, 'PIDPAD', 'BGCL1CMP2', 'tes2', 4, 0, 80000, '2024-09-10 09:04:38', '2024-09-10 09:04:38', 'N', '240617104137');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2409100941420003', '2024-09-10', NULL, 'PIDPAD', 'BJPT', 'tes receipt 9/10', 11, 0, 165000, '2024-09-10 09:42:02', '2024-09-10 09:42:02', 'N', '240617104137');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2409101635200004', '2024-09-10', NULL, '', 'MZLWCMP2', 'test 9-10', 11, 0, 195000, '2024-09-10 16:37:20', '2024-09-10 16:37:20', 'N', '240617104137');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2409111150440001', '2024-09-11', NULL, 'PIDPAD', 'MZLWCMP2', 'mizu 5 pcs', 5, 0, 5000, '2024-09-11 11:51:06', '2024-09-11 11:51:06', 'N', '240617104137');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2409111151300001', '2024-09-11', NULL, 'PIDPADTSM', 'MZLWCMP2', 'mizu 12 pcs', 12, 0, 180000, '2024-09-11 11:51:52', '2024-09-11 11:51:52', 'N', '240807133423');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2409111422170002', '2024-09-09', NULL, 'PIDPAD', 'MZLWCMP2', 'tes tanggal 9 ', 4, 0, 6000, '2024-09-11 14:22:54', '2024-09-11 14:22:54', 'N', '240617104137');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2409111422580003', '2024-09-10', NULL, 'PIDPAD', 'MZLWCMP2', 'tes tanggal 10', 7, 0, 29000, '2024-09-11 14:23:23', '2024-09-11 14:23:23', 'N', '240617104137');
INSERT INTO "public"."Luv2_receipt" VALUES ('240617104137', 'GR2409111540440004', '2024-09-11', NULL, 'PIDPAD', 'BJPT', 'INV NO 1234', 48, 0, 336000, '2024-09-11 15:41:36', '2024-09-11 15:41:36', 'N', '240617104137');

-- ----------------------------
-- Table structure for Luv2_receipt_detail
-- ----------------------------
CREATE TABLE "public"."Luv2_receipt_detail" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "item_code" varchar(30) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "qty" numeric DEFAULT 0,
  "price" numeric DEFAULT 0,
  "disc" numeric DEFAULT 0,
  "total" numeric DEFAULT 0,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "linenum" int4,
  "unit" int4,
  "qty_unit" numeric
)
;

-- ----------------------------
-- Records of Luv2_receipt_detail
-- ----------------------------
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2410110920460001', 'TEPML030206', 1, 122222, 0, 122222, '2024-10-11 09:35:06', '2024-10-11 09:35:06', 1, 1, 1);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2406260950001', 'KhangKhung', 101, 305992, 0, 30905192, '2024-06-26 09:50:07', '2024-06-26 09:50:07', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2406260950001', 'SJQY923758', 1123, 425734, 0, 478099282, '2024-06-26 09:50:07', '2024-06-26 09:50:07', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2406260950001', 'JNAB849429', 1412, 456842, 0, 645060904, '2024-06-26 09:50:07', '2024-06-26 09:50:07', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2406260950001', 'RTND609516', 1412, 496003, 0, 700356236, '2024-06-26 09:50:07', '2024-06-26 09:50:07', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2406260951001', 'KhangKhung', 161, 305992, 0, 49264712, '2024-06-26 09:51:35', '2024-06-26 09:51:35', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2406260951001', 'IQUB368808', 11, 445302, 0, 4898322, '2024-06-26 09:51:35', '2024-06-26 09:51:35', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2406260951001', 'PWPY507519', 15, 213992, 0, 3209880, '2024-06-26 09:51:35', '2024-06-26 09:51:35', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2406260952001', 'MOVJ124696', 1, 155859, 0, 155859, '2024-06-26 09:52:11', '2024-06-26 09:52:11', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2406271422001', 'SJQY923758', 13, 425734, 0, 5534542, '2024-06-27 14:22:43', '2024-06-27 14:22:43', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2406271422001', 'ZVGD761463', 1, 357072, 0, 357072, '2024-06-27 14:22:43', '2024-06-27 14:22:43', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2406271422001', 'YELA179001', 6, 238583, 0, 1431498, '2024-06-27 14:22:43', '2024-06-27 14:22:43', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2406271434001', 'KhangKhung', 55667, 305992, 0, 17033656664, '2024-06-27 14:34:05', '2024-06-27 14:34:05', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2406271434001', 'JNAB849429', 1, 456842, 0, 456842, '2024-06-27 14:34:05', '2024-06-27 14:34:05', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2407041206001', 'JYJW294912', 1, 328724, 0, 328724, '2024-07-04 12:06:14', '2024-07-04 12:06:14', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2407041206001', 'JNAB849429', 1, 456842, 0, 456842, '2024-07-04 12:06:14', '2024-07-04 12:06:14', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2407041206001', 'MOVJ124696', 1, 155859, 0, 155859, '2024-07-04 12:06:14', '2024-07-04 12:06:14', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2407041206001', 'EISP360746', 1, 316755, 0, 316755, '2024-07-04 12:06:14', '2024-07-04 12:06:14', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2408301500260001', 'SJQY923758', 3, 13000, 0, 39000, '2024-08-30 15:04:55', '2024-08-30 15:04:55', 1, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2408301500260001', 'DNQE279566', 4, 14000, 0, 56000, '2024-08-30 15:04:55', '2024-08-30 15:04:55', 2, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409021007150001', 'IQUB368808', 1, 2000, 0, 2000, '2024-09-02 10:07:57', '2024-09-02 10:07:57', 1, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409021007150001', 'MFCN958908', 1, 2000, 0, 2000, '2024-09-02 10:07:57', '2024-09-02 10:07:57', 2, NULL, NULL);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409040820280001', 'TSTUNT1001', 12, 12000, 0, 144000, '2024-09-04 10:34:39', '2024-09-04 10:34:39', 1, 1, 1);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409041039170002', 'TSTUNT1001', 12, 240000, 0, 2880000, '2024-09-04 10:39:40', '2024-09-04 10:39:40', 1, 1, 1);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409041048260003', 'TSTUNT1001', 48, 40000, 0, 1920000, '2024-09-04 10:49:01', '2024-09-04 10:49:01', 1, 1, 4);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409041051150004', 'YELA179001', 36, 30000, 0, 1080000, '2024-09-04 10:52:20', '2024-09-04 10:52:20', 1, 1, 3);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409100903050001', 'SAXQ706219', 5, 10000, 0, 50000, '2024-09-10 09:04:07', '2024-09-10 09:04:07', 1, 0, 5);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409100904130002', 'YELA179001', 4, 20000, 0, 80000, '2024-09-10 09:04:38', '2024-09-10 09:04:38', 1, 0, 4);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409100941420003', 'ZVGD761463', 11, 15000, 0, 165000, '2024-09-10 09:42:02', '2024-09-10 09:42:02', 1, 0, 11);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409101635200004', 'SAXQ706219', 5, 15000, 0, 75000, '2024-09-10 16:37:20', '2024-09-10 16:37:20', 1, 0, 5);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409101635200004', 'ZVGD761463', 6, 20000, 0, 120000, '2024-09-10 16:37:20', '2024-09-10 16:37:20', 2, 0, 6);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409111150440001', 'TSTUNT1001', 5, 1000, 0, 5000, '2024-09-11 11:51:06', '2024-09-11 11:51:06', 1, 0, 5);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409111151300001', 'TSTUNT1001', 12, 15000, 0, 180000, '2024-09-11 11:51:52', '2024-09-11 11:51:52', 1, 1, 1);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409111422170002', 'SAXQ706219', 2, 1000, 0, 2000, '2024-09-11 14:22:54', '2024-09-11 14:22:54', 1, 0, 2);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409111422170002', 'ZVGD761463', 2, 2000, 0, 4000, '2024-09-11 14:22:54', '2024-09-11 14:22:54', 2, 0, 2);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409111422580003', 'YELA179001', 2, 2000, 0, 4000, '2024-09-11 14:23:23', '2024-09-11 14:23:23', 1, 0, 2);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409111422580003', 'TSTUNT1001', 5, 5000, 0, 25000, '2024-09-11 14:23:23', '2024-09-11 14:23:23', 2, 0, 5);
INSERT INTO "public"."Luv2_receipt_detail" VALUES ('240617104137', 'GR2409111540440004', 'kmab135', 48, 7000, 0, 336000, '2024-09-11 15:41:36', '2024-09-11 15:41:36', 1, 0, 48);

-- ----------------------------
-- Table structure for Luv2_renewal
-- ----------------------------
CREATE TABLE "public"."Luv2_renewal" (
  "id" int4 NOT NULL DEFAULT nextval('luv2_renewal_id_seq'::regclass),
  "order_id" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "snap_token" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "company_code" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "amount" numeric(10,2) NOT NULL,
  "status" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
  "created_at" timestamp(6) DEFAULT CURRENT_TIMESTAMP,
  "updated_at" timestamp(6) DEFAULT CURRENT_TIMESTAMP,
  "detail" text COLLATE "pg_catalog"."default"
)
;

-- ----------------------------
-- Records of Luv2_renewal
-- ----------------------------
INSERT INTO "public"."Luv2_renewal" VALUES (11, '1MNTH-240617104137-20241028111312', '164178d5-5bf1-4a23-8131-b2ca0fbfa428', '240617104137', 300000.00, 'pending', '2024-10-28 11:13:12', '2024-10-28 11:13:12', '{"customer_details":{"first_name":"admin@gmail.com","last_name":"Adi Mandiri","email":null,"phone":"089621791541"},"item_details":[{"id":"1MNTH-240617104137-20241028111312","price":300000,"quantity":1,"name":"Subscription 1 Month with 3 Accounts"}]}');

-- ----------------------------
-- Table structure for Luv2_return
-- ----------------------------
CREATE TABLE "public"."Luv2_return" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "date" date,
  "due_date" date,
  "whs_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "supp_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "remark" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "qty" numeric DEFAULT 0,
  "disc" numeric DEFAULT 0,
  "total" numeric DEFAULT 0,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "deleted" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "user_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying
)
;

-- ----------------------------
-- Records of Luv2_return
-- ----------------------------
INSERT INTO "public"."Luv2_return" VALUES ('240617104137', 'GR2406271522002', '2024-06-27', NULL, 'PIDPUD', 'CCCL2', 'Tes Goods Return 
Tanjirau', 99, 0, 18429545, '2024-06-27 15:22:03', '2024-06-27 15:22:03', 'N', '240617104137');
INSERT INTO "public"."Luv2_return" VALUES ('240617113203', 'GR2407191453001', '2024-07-19', NULL, 'PIDPUD', 'CCCL2', 'Test', 1, 0, 0, '2024-07-19 14:53:56', '2024-07-19 14:53:56', 'N', '24916543213');
INSERT INTO "public"."Luv2_return" VALUES ('240617104137', 'GR2407221557001', '2024-07-22', NULL, 'PIDPUD', 'BJPT', 'test nyan..', 25, 0, 1680000, '2024-07-22 15:57:46', '2024-07-22 15:57:46', 'N', '240617104137');
INSERT INTO "public"."Luv2_return" VALUES ('240617104137', 'GR2408191059001', '2024-08-19', NULL, 'PIDPUD', 'BGCL1', 'antutu', 1, 0, 4, '2024-08-19 10:59:32', '2024-08-19 10:59:32', 'N', '240617104137');
INSERT INTO "public"."Luv2_return" VALUES ('240617104137', 'GR2406271516001', '2024-06-27', NULL, 'PIDPAD', 'BJPT', 'Goods Return ini coba', 5, 0, 1186551, '2024-06-27 15:16:05', '2024-06-27 15:16:05', 'Y', '240617104137');
INSERT INTO "public"."Luv2_return" VALUES ('240617104137', 'GR240905090620001', '2024-09-05', NULL, 'PIDPAD', 'CCCL2', 'tes return', 0, 0, 360000, '2024-09-05 09:13:29', '2024-09-05 09:13:29', 'N', '240617104137');
INSERT INTO "public"."Luv2_return" VALUES ('240617104137', 'GR240905092336001', '2024-09-05', NULL, 'PIDPAD', 'CCCL2', 'a', 0, 0, 27500, '2024-09-05 09:25:40', '2024-09-05 09:25:40', 'N', '240617104137');
INSERT INTO "public"."Luv2_return" VALUES ('240617104137', 'GR240910093654003', '2024-09-10', NULL, 'PIDPAD', 'MZLWCMP2', 'tes receipt 9/10', 0, 0, 46000, '2024-09-10 09:37:22', '2024-09-10 09:37:22', 'Y', '240617104137');
INSERT INTO "public"."Luv2_return" VALUES ('240617104137', 'GR240910093855003', '2024-09-10', NULL, 'PIDPAD', 'MZLWCMP2', 'tes receipt 9/10  - 2 ', 0, 0, 438000, '2024-09-10 09:39:38', '2024-09-10 09:39:38', 'Y', '240617104137');
INSERT INTO "public"."Luv2_return" VALUES ('240617104137', 'GR240910094034003', '2024-09-10', NULL, 'PIDPAD', 'BJPT', 'teasd', 0, 0, 2460000, '2024-09-10 09:40:54', '2024-09-10 09:40:54', 'Y', '240617104137');
INSERT INTO "public"."Luv2_return" VALUES ('240617104137', 'GR240911115509002', '2024-09-11', NULL, 'PIDPADTSM', 'MZLWCMP2', 'Return 2 pcs mizu', 2, 0, 6000, '2024-09-11 11:55:28', '2024-09-11 11:55:28', 'N', '240807133423');
INSERT INTO "public"."Luv2_return" VALUES ('240617104137', 'GR240911163223005', '2024-09-11', NULL, 'PIDPAD', 'BJPT', 'inv1234 return barang rusak', 1, 0, 7000, '2024-09-11 16:49:04', '2024-09-11 16:49:04', 'N', '240617104137');

-- ----------------------------
-- Table structure for Luv2_return_detail
-- ----------------------------
CREATE TABLE "public"."Luv2_return_detail" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "item_code" varchar(30) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "qty" numeric DEFAULT 0,
  "price" numeric DEFAULT 0,
  "disc" numeric DEFAULT 0,
  "total" numeric DEFAULT 0,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "linenum" int4,
  "unit" int4,
  "qty_unit" numeric
)
;

-- ----------------------------
-- Records of Luv2_return_detail
-- ----------------------------
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR2406271516001', 'KhangKhung', 1, 305992, 0, 305992, '2024-06-27 15:16:05', '2024-06-27 15:16:05', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR2406271516001', 'YELA179001', 1, 238583, 0, 238583, '2024-06-27 15:16:05', '2024-06-27 15:16:05', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR2406271516001', 'PWPY507519', 3, 213992, 0, 641976, '2024-06-27 15:16:05', '2024-06-27 15:16:05', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR2406271522002', 'KhangKhung', 12, 305992, 0, 3671904, '2024-06-27 15:22:03', '2024-06-27 15:22:03', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR2406271522002', 'MOVJ124696', 77, 155859, 0, 12001143, '2024-06-27 15:22:03', '2024-06-27 15:22:03', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR2406271522002', 'PWPY507519', 4, 213992, 0, 855968, '2024-06-27 15:22:03', '2024-06-27 15:22:03', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR2406271522002', 'EISP360746', 6, 316755, 0, 1900530, '2024-06-27 15:22:03', '2024-06-27 15:22:03', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617113203', 'GR2407191453001', 'FIKRI MOBILIU', 1, NULL, 0, 0, '2024-07-19 14:53:56', '2024-07-19 14:53:56', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR2407221557001', 'IQUB368808', 15, 20000, 0, 300000, '2024-07-22 15:57:46', '2024-07-22 15:57:46', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR2407221557001', 'DNQE279566', 1, 10000, 0, 10000, '2024-07-22 15:57:46', '2024-07-22 15:57:46', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR2407221557001', 'EISP360746', 2, 125000, 0, 250000, '2024-07-22 15:57:46', '2024-07-22 15:57:46', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR2407221557001', 'AWXH653014', 7, 160000, 0, 1120000, '2024-07-22 15:57:46', '2024-07-22 15:57:46', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR2408191059001', 'MKBQ217561', 1, 4, 0, 4, '2024-08-19 10:59:32', '2024-08-19 10:59:32', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR240905090620001', 'TSTUNT1001', 1, 30000, 0, 360000, '2024-09-05 09:13:29', '2024-09-05 09:13:29', 1, 1, 1);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR240905092336001', 'TSTUNT1001', 11, 2500, 0, 27500, '2024-09-05 09:25:40', '2024-09-05 09:25:40', 1, 0, 11);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR240910093654003', 'ZVGD761463', 5, 2000, 0, 10000, '2024-09-10 09:37:22', '2024-09-10 09:37:22', 1, 0, 5);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR240910093654003', 'SAXQ706219', 12, 3000, 0, 36000, '2024-09-10 09:37:22', '2024-09-10 09:37:22', 2, 1, 1);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR240910093855003', 'ZVGD761463', 4, 12000, 0, 48000, '2024-09-10 09:39:38', '2024-09-10 09:39:38', 1, 2, 1);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR240910093855003', 'TTAM752062', 24, 15000, 0, 360000, '2024-09-10 09:39:38', '2024-09-10 09:39:38', 2, 1, 2);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR240910093855003', 'WDME378232', 6, 5000, 0, 30000, '2024-09-10 09:39:38', '2024-09-10 09:39:38', 3, 0, 6);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR240910094034003', 'SAXQ706219', 123, 20000, 0, 2460000, '2024-09-10 09:40:54', '2024-09-10 09:40:54', 1, 0, 123);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR240911115509002', 'TSTUNT1001', 2, 3000, 0, 6000, '2024-09-11 11:55:28', '2024-09-11 11:55:28', 1, 0, 2);
INSERT INTO "public"."Luv2_return_detail" VALUES ('240617104137', 'GR240911163223005', 'kmab135', 1, 7000, 0, 7000, '2024-09-11 16:49:04', '2024-09-11 16:49:04', 1, 0, 1);

-- ----------------------------
-- Table structure for Luv2_salesemp
-- ----------------------------
CREATE TABLE "public"."Luv2_salesemp" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "name" varchar(155) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "position" varchar(50) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "remark" varchar(50) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "active" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'Y'::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6)
)
;

-- ----------------------------
-- Records of Luv2_salesemp
-- ----------------------------
INSERT INTO "public"."Luv2_salesemp" VALUES ('240617104137', 'TRTLSPR', 'Tarantula Super', 'Sales', 'Tara', 'Y', NULL, NULL);
INSERT INTO "public"."Luv2_salesemp" VALUES ('240617104137', 'HBRNG', 'Mizuu', 'Sales', '-', 'Y', '2024-07-12 16:16:00', '2024-07-12 16:16:00');
INSERT INTO "public"."Luv2_salesemp" VALUES ('240617113203', '62271947', 'Meupeu', 'Sales', '-', 'Y', '2024-07-18 08:52:21', '2024-07-18 08:52:21');
INSERT INTO "public"."Luv2_salesemp" VALUES ('240617113203', 'K1N', 'Kina', 'Sales', '-', 'Y', '2024-07-18 13:35:06', '2024-07-18 13:35:06');
INSERT INTO "public"."Luv2_salesemp" VALUES ('240617104137', '3423453', 'Liora', 'manager', 'dfgdf', 'Y', '2024-08-15 10:25:47', '2024-08-15 10:25:47');
INSERT INTO "public"."Luv2_salesemp" VALUES ('240617104137', '1226362321', 'Eparuhimoza ', 'Clerk', 'Nothing', 'Y', '2024-09-10 11:52:55', '2024-09-10 11:52:55');

-- ----------------------------
-- Table structure for Luv2_size
-- ----------------------------
CREATE TABLE "public"."Luv2_size" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "name" varchar(50) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "unique_code" varchar(255) COLLATE "pg_catalog"."default" NOT NULL
)
;

-- ----------------------------
-- Records of Luv2_size
-- ----------------------------
INSERT INTO "public"."Luv2_size" VALUES ('240617104137', 'MHXL', 'Mhom XL', '2024-06-24 11:53:02', '2024-06-24 11:53:02', '4137MHXL');
INSERT INTO "public"."Luv2_size" VALUES ('240617104137', 'SHXXL', 'Sharp XXL', '2024-06-24 11:53:02', '2024-06-24 11:53:35', '4137SHXXL');
INSERT INTO "public"."Luv2_size" VALUES ('240617104137', 'BGKRICK', 'BG Krick XL', '2024-06-24 11:53:35', '2024-06-24 11:54:19', '4137BGKRICK');
INSERT INTO "public"."Luv2_size" VALUES ('240617104137', '56ty', 'Sendal KNV', '2024-08-15 10:52:06', '2024-08-15 10:52:06', '413756ty2408151052');
INSERT INTO "public"."Luv2_size" VALUES ('240617104137', 'l', 'LARGE', '2024-08-16 09:45:17', '2024-08-16 09:45:17', '4137l2408160945');
INSERT INTO "public"."Luv2_size" VALUES ('240617104137', 'M', 'M', '2024-09-03 08:53:00', '2024-09-03 08:53:00', '4137M2409030853');
INSERT INTO "public"."Luv2_size" VALUES ('240617104137', 'BT135ML', 'BOTOL 135ML', '2024-09-11 14:47:49', '2024-09-11 14:47:49', '4137BT135ML2409111447');
INSERT INTO "public"."Luv2_size" VALUES ('240617104137', '250ML', 'BOTOL 250ML', '2024-09-12 13:44:05', '2024-09-12 13:44:05', '4137250ML2409121344');
INSERT INTO "public"."Luv2_size" VALUES ('240617104137', 'a', 'aaaa', '2024-10-08 09:05:05', '2024-10-08 09:05:05', '4137a2410080905');

-- ----------------------------
-- Table structure for Luv2_size_temp
-- ----------------------------
CREATE TABLE "public"."Luv2_size_temp" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "name" varchar(50) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "id_user" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "unique_code" varchar(255) COLLATE "pg_catalog"."default"
)
;

-- ----------------------------
-- Records of Luv2_size_temp
-- ----------------------------
INSERT INTO "public"."Luv2_size_temp" VALUES ('240617113203', 'SHXXL', 'Sharp XXL', '2024-07-19 13:58:13', '2024-07-19 13:58:13', '2', '3203SHXXL2407191358');
INSERT INTO "public"."Luv2_size_temp" VALUES ('240617113203', 'MHXL', 'Mhom XL', '2024-07-19 13:58:13', '2024-07-19 13:58:13', '2', '3203MHXL2407191358');

-- ----------------------------
-- Table structure for Luv2_supplier
-- ----------------------------
CREATE TABLE "public"."Luv2_supplier" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL,
  "code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "name" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "address" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "phone" varchar(30) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "email" varchar(30) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6)
)
;

-- ----------------------------
-- Records of Luv2_supplier
-- ----------------------------
INSERT INTO "public"."Luv2_supplier" VALUES ('240617104137', 'SPRT1', 'Sprite', 'Jl. Sprite', '08125123', 'sprite@gmail.com', '2024-06-24 14:42:15', '2024-06-24 16:00:19');
INSERT INTO "public"."Luv2_supplier" VALUES ('240617104137', 'MZLWCMP2', 'Mizu Living Company 2', 'Jl. Mizu Living', '08125126', 'mizuliving@gmail.com', '2024-07-18 08:50:45', '2024-07-18 08:50:45');
INSERT INTO "public"."Luv2_supplier" VALUES ('240617104137', 'BJPT', 'Bestari Jaya PT', 'Jl. Nakula', '09863161321', 'bestarijaya@co.id', '2024-06-24 15:57:52', '2024-06-24 15:57:52');
INSERT INTO "public"."Luv2_supplier" VALUES ('240617104137', 'MZLW', 'Mizu Living', 'Jl. Mizu Living', '08125126', 'mizuliving@gmail.com', '2024-06-24 14:42:15', '2024-06-24 16:00:19');
INSERT INTO "public"."Luv2_supplier" VALUES ('240617104137', 'CCCL2CMP2', 'Coca Cola Company 2', 'Jl. Coca Cola', '08125124', 'cocacola@gmail.com', '2024-07-18 08:50:45', '2024-07-18 08:50:45');
INSERT INTO "public"."Luv2_supplier" VALUES ('240617104137', 'BGCL1CMP2', 'Big Cola Company 2', 'Jl. Big Cola', '08125125', 'bigcola@gmail.com', '2024-07-18 08:50:45', '2024-07-18 08:50:45');
INSERT INTO "public"."Luv2_supplier" VALUES ('240617104137', '3203FT36', 'Fikri Test', 'Jl.Rencana', '0896351354', 'zmobi@gmail.com', '2024-07-19 15:35:36', '2024-07-19 15:35:36');
INSERT INTO "public"."Luv2_supplier" VALUES ('240617104137', 'SPRT1CMP2', 'Sprite Company 2', 'Jl. Sprite', '08125123', 'sprite@gmail.com', '2024-07-18 08:50:45', '2024-07-18 08:50:45');
INSERT INTO "public"."Luv2_supplier" VALUES ('240617104137', '4137S30', 'Sumanto', 'Jl.Kartika plaza', '089621465833', 'Sumantosumanto@gmail.com', '2024-09-10 11:49:30', '2024-09-10 11:49:30');
INSERT INTO "public"."Luv2_supplier" VALUES ('240617104137', '4137S23', 'Sprite', 'sdfsf', '08989832', 'sdd@gmail.com', '2024-09-20 11:12:23', '2024-09-20 11:12:23');
INSERT INTO "public"."Luv2_supplier" VALUES ('240617104137', '4137B52', 'BLESING', 'JL P. Kawe', '0989909890', 'blesing@gmail.com', '2024-09-20 15:19:52', '2024-09-20 15:19:52');
INSERT INTO "public"."Luv2_supplier" VALUES ('240617104137', '4137gk26', 'grosir kaos', 'Jl. teuku umar', '32423423', 'aaa@gmail.com', '2024-10-01 09:42:26', '2024-10-01 09:42:26');
INSERT INTO "public"."Luv2_supplier" VALUES ('240617104137', 'BGCL1', 'Big Cola', 'Jl. Big Cola', '08125125', 'bigcola@gmail.com', '2024-06-24 14:42:15', '2024-06-24 16:00:19');
INSERT INTO "public"."Luv2_supplier" VALUES ('240617104137', 'CCCL2', 'Coca Cola', 'Jl. Coca Cola', '08125124', 'cocacola@gmail.com', '2024-06-24 14:42:15', '2024-06-24 16:00:19');

-- ----------------------------
-- Table structure for Luv2_supplier_temp
-- ----------------------------
CREATE TABLE "public"."Luv2_supplier_temp" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL,
  "code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "name" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "address" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "phone" varchar(30) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "email" varchar(30) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "id_user" varchar(255) COLLATE "pg_catalog"."default" NOT NULL
)
;

-- ----------------------------
-- Records of Luv2_supplier_temp
-- ----------------------------
INSERT INTO "public"."Luv2_supplier_temp" VALUES ('240617104137', 'SPRT1', 'Sprite', 'Jl. Sprite', '08125123', 'sprite@gmail.com', '2024-06-24 16:00:19', '2024-06-24 16:00:19', '1');
INSERT INTO "public"."Luv2_supplier_temp" VALUES ('240617104137', 'CCCL2', 'Coca Cola', 'Jl. Coca Cola', '08125124', 'cocacola@gmail.com', '2024-06-24 16:00:19', '2024-06-24 16:00:19', '1');
INSERT INTO "public"."Luv2_supplier_temp" VALUES ('240617104137', 'BGCL1', 'Big Cola', 'Jl. Big Cola', '08125125', 'bigcola@gmail.com', '2024-06-24 16:00:19', '2024-06-24 16:00:19', '1');
INSERT INTO "public"."Luv2_supplier_temp" VALUES ('240617104137', 'MZLW', 'Mizu Living', 'Jl. Mizu Living', '08125126', 'mizuliving@gmail.com', '2024-06-24 16:00:19', '2024-06-24 16:00:19', '1');
INSERT INTO "public"."Luv2_supplier_temp" VALUES ('240617113203', 'SPRT1CMP2', 'Sprite Company 2', 'Jl. Sprite', '08125123', 'sprite@gmail.com', '2024-07-18 08:50:45', '2024-07-18 08:50:45', '2');
INSERT INTO "public"."Luv2_supplier_temp" VALUES ('240617113203', 'CCCL2CMP2', 'Coca Cola Company 2', 'Jl. Coca Cola', '08125124', 'cocacola@gmail.com', '2024-07-18 08:50:45', '2024-07-18 08:50:45', '2');
INSERT INTO "public"."Luv2_supplier_temp" VALUES ('240617113203', 'BGCL1CMP2', 'Big Cola Company 2', 'Jl. Big Cola', '08125125', 'bigcola@gmail.com', '2024-07-18 08:50:45', '2024-07-18 08:50:45', '2');
INSERT INTO "public"."Luv2_supplier_temp" VALUES ('240617113203', 'MZLWCMP2', 'Mizu Living Company 2', 'Jl. Mizu Living', '08125126', 'mizuliving@gmail.com', '2024-07-18 08:50:45', '2024-07-18 08:50:45', '2');

-- ----------------------------
-- Table structure for Luv2_transfer
-- ----------------------------
CREATE TABLE "public"."Luv2_transfer" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "date" date,
  "whs_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "whs_code_to" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "remark" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "qty" numeric DEFAULT 0,
  "total" numeric(255,0) DEFAULT 0,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "canceled" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "user_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "status" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "qty_request" numeric,
  "qty_open" numeric,
  "qty_close" numeric
)
;

-- ----------------------------
-- Records of Luv2_transfer
-- ----------------------------
INSERT INTO "public"."Luv2_transfer" VALUES ('240617104137', 'IT2409191031001', '2024-09-19', 'PIDPADTSM', 'PIDPAD', 'tes request transfer 9 19', 7, 708700, '2024-09-19 10:31:13', '2024-09-19 10:44:43', 'N', '240617104137', '1', 7, 7, NULL);
INSERT INTO "public"."Luv2_transfer" VALUES ('240617104137', 'IT2409180931001', '2024-09-18', 'PIDPAD', 'PIDPADTSM', 'tes request', 29, 899355, '2024-09-18 09:31:10', '2024-09-18 09:34:53', 'N', '240807133423', '3', 29, 31, 33);
INSERT INTO "public"."Luv2_transfer" VALUES ('240617104137', 'IT2409181139001', '2024-09-18', 'PIDPAD', 'PIDPADTSM', 'a', 1, 496003, '2024-09-18 11:39:54', '2024-09-18 11:45:45', 'N', '240807133423', '3', 1, 1, 2);
INSERT INTO "public"."Luv2_transfer" VALUES ('240617104137', 'IT2409180811001', '2024-09-18', 'PIDPAD', 'PIDPADTSM', 'test it request', 3, 1182557, '2024-09-18 08:11:56', '2024-09-18 08:16:57', 'N', '240807133423', '4', 3, 0, NULL);
INSERT INTO "public"."Luv2_transfer" VALUES ('240617104137', 'IT2409181542001', '2024-09-18', 'PIDPAD', 'PIDPADTSM', 'tes request seminyak', 11, 2267210, '2024-09-18 15:42:25', '2024-09-18 15:43:05', 'N', '240807133423', '2', 11, 14, 14);
INSERT INTO "public"."Luv2_transfer" VALUES ('240617104137', 'IT2409181150001', '2024-09-18', 'PIDPADTSM', 'PIDPAD', 'tes request 2', 2, 5000, '2024-09-18 11:50:04', '2024-09-18 11:56:38', 'N', '240617104137', '3', 2, 3, 4);

-- ----------------------------
-- Table structure for Luv2_transfer_copy1
-- ----------------------------
CREATE TABLE "public"."Luv2_transfer_copy1" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "date" date,
  "whs_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "whs_code_to" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "remark" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "qty" numeric DEFAULT 0,
  "total" numeric(255,0) DEFAULT 0,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "canceled" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "user_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "status" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'N'::character varying,
  "qty_request" numeric,
  "qty_open" numeric,
  "qty_close" numeric
)
;

-- ----------------------------
-- Records of Luv2_transfer_copy1
-- ----------------------------
INSERT INTO "public"."Luv2_transfer_copy1" VALUES ('240617104137', 'IT2409101446004', '2024-09-10', 'PIDPADTSM', 'PIDPAD', 'Test Request ', 1, 348100, '2024-09-10 14:46:17', '2024-09-10 14:46:17', 'N', '240617104137', '5', 1, 0, NULL);
INSERT INTO "public"."Luv2_transfer_copy1" VALUES ('240617104137', 'ITOUT2407010913001', '2024-07-01', 'PIDPAD', 'PIDPUD', '-', -15, -3724652, '2024-07-01 09:13:53', '2024-07-01 09:13:53', 'N', '240617104137', 'Y', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_copy1" VALUES ('240617104137', 'ITIN2407030957001', '2024-07-03', 'PIDPUD', 'PIDPAD', 'tess', 1, 403711, '2024-07-03 09:57:35', '2024-07-03 09:57:35', 'N', '240617104137', 'Y', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_copy1" VALUES ('240617104137', 'IT2409110911001', '2024-09-11', 'PIDPADTSM', 'PIDPAD', 'test 911', 11, 2154932, '2024-09-11 09:11:36', '2024-09-11 09:13:02', 'N', '240807133423', '3', 0, 11, 12);
INSERT INTO "public"."Luv2_transfer_copy1" VALUES ('240617104137', 'ITIN2407010913001', '2024-07-01', 'PIDPAD', 'PIDPUD', 'Yeaaa', 4, 1131183, '2024-07-01 09:13:05', '2024-07-01 09:13:05', 'N', '240617104137', 'Y', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_copy1" VALUES ('240617104137', 'ITIN2407030958001', '2024-07-03', 'PIDPAD', 'PIDPUD', 'a', 1, 342597, '2024-07-03 09:58:53', '2024-07-03 09:58:53', 'N', '240617104137', 'Y', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_copy1" VALUES ('240617104137', 'ITIN2407091532001', '2024-07-09', 'PIDPUD', 'PIDPAD', 'ya', 3, 1040102, '2024-07-09 15:32:52', '2024-07-09 15:32:52', 'N', '240617104137', 'N', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_copy1" VALUES ('240617104137', 'ITIN2408161020001', '2024-08-16', 'PIDPUD', 'PIDPAD', 'test', 12, 0, '2024-08-16 10:20:23', '2024-08-16 10:20:23', 'N', '240617104137', 'N', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_copy1" VALUES ('240617104137', 'ITOUT2409061046001', '2024-09-06', 'PIDPAD', 'PIDPADTSM', 'AAbbCC', -12, -2862996, '2024-09-06 10:46:40', '2024-09-06 10:46:40', 'N', '240617104137', '1', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_copy1" VALUES ('240617104137', 'ITOUT2409101429004', '2024-09-10', 'PIDPAD', 'PIDPADTSM', 'test request', -1, -2500, '2024-09-10 14:29:01', '2024-09-11 09:15:39', 'N', '240617104137', '2', -1, -1, -1);
INSERT INTO "public"."Luv2_transfer_copy1" VALUES ('240617104137', 'ITOUT2409101011004', '2024-09-10', 'PIDPADTSM', 'PIDPAD', 'aa', -12, -30000, '2024-09-10 10:11:35', '2024-09-11 09:01:30', 'N', '240617104137', '3', NULL, NULL, NULL);

-- ----------------------------
-- Table structure for Luv2_transfer_detail
-- ----------------------------
CREATE TABLE "public"."Luv2_transfer_detail" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "item_code" varchar(30) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "qty" numeric DEFAULT 0,
  "actualqty" numeric DEFAULT 0,
  "price" numeric DEFAULT 0,
  "total" numeric DEFAULT 0,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "linenum" int4,
  "unit" int4,
  "qty_unit" numeric,
  "qty_request" numeric DEFAULT 0,
  "qty_open" numeric DEFAULT 0,
  "qty_close" numeric DEFAULT 0
)
;

-- ----------------------------
-- Records of Luv2_transfer_detail
-- ----------------------------
INSERT INTO "public"."Luv2_transfer_detail" VALUES ('240617104137', 'IT2409181139001', 'RTND609516', 2, 2, 496003, 496003, '2024-09-18 11:39:54', '2024-09-18 11:39:54', 1, 0, 1, 1, 1, 2);
INSERT INTO "public"."Luv2_transfer_detail" VALUES ('240617104137', 'IT2409181150001', 'TSTUNT1001', 4, 4, 2500, 5000, '2024-09-18 11:50:04', '2024-09-18 11:50:04', 1, 0, 2, 2, 3, 4);
INSERT INTO "public"."Luv2_transfer_detail" VALUES ('240617104137', 'IT2409181542001', 'TFQG886337', 7, 7, 375785, 2254710, '2024-09-18 15:42:25', '2024-09-18 15:42:25', 1, 0, 6, 6, 7, 0);
INSERT INTO "public"."Luv2_transfer_detail" VALUES ('240617104137', 'IT2409181542001', 'TSTUNT1001', 7, 7, 2500, 12500, '2024-09-18 15:42:25', '2024-09-18 15:42:25', 1, 0, 5, 5, 7, 0);
INSERT INTO "public"."Luv2_transfer_detail" VALUES ('240617104137', 'IT2409191031001', 'TSTUNT1001', 5, 5, 2500, 12500, '2024-09-19 10:31:13', '2024-09-19 10:31:13', 1, 0, 5, 5, 5, 0);
INSERT INTO "public"."Luv2_transfer_detail" VALUES ('240617104137', 'IT2409191031001', 'SAXQ706219', 2, 2, 348100, 696200, '2024-09-19 10:31:13', '2024-09-19 10:31:13', 1, 0, 2, 2, 2, 0);
INSERT INTO "public"."Luv2_transfer_detail" VALUES ('240617104137', 'IT2409180931001', 'TSTUNT1001', 26, 26, 2500, 60000, '2024-09-18 09:31:10', '2024-09-18 09:31:10', 1, 1, 2, 24, 25, 26);
INSERT INTO "public"."Luv2_transfer_detail" VALUES ('240617104137', 'IT2409180931001', 'TTAM752062', 7, 7, 167871, 839355, '2024-09-18 09:31:10', '2024-09-18 09:31:10', 1, 0, 5, 5, 6, 7);

-- ----------------------------
-- Table structure for Luv2_transfer_detail_copy1
-- ----------------------------
CREATE TABLE "public"."Luv2_transfer_detail_copy1" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "no" varchar(20) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "item_code" varchar(30) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "qty" numeric DEFAULT 0,
  "actualqty" numeric DEFAULT 0,
  "price" numeric DEFAULT 0,
  "total" numeric DEFAULT 0,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "linenum" int4,
  "unit" int4,
  "qty_unit" numeric
)
;

-- ----------------------------
-- Records of Luv2_transfer_detail_copy1
-- ----------------------------
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITIN2407010913001', 'MKBQ217561', 1, 1, 181414, 181414, '2024-07-01 09:13:05', '2024-07-01 09:13:05', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITIN2407010913001', 'JNAB849429', 1, 1, 456842, 456842, '2024-07-01 09:13:05', '2024-07-01 09:13:05', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITIN2407010913001', 'NZXR601751', 1, 1, 150330, 150330, '2024-07-01 09:13:05', '2024-07-01 09:13:05', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITIN2407010913001', 'CDZY211020', 1, 1, 342597, 342597, '2024-07-01 09:13:05', '2024-07-01 09:13:05', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITOUT2407010913001', 'JYJW294912', -1, -1, 328724, -328724, '2024-07-01 09:13:53', '2024-07-01 09:13:53', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITOUT2407010913001', 'IQUB368808', -2, -2, 445302, -890604, '2024-07-01 09:13:53', '2024-07-01 09:13:53', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITOUT2407010913001', 'YELA179001', -3, -3, 238583, -715749, '2024-07-01 09:13:53', '2024-07-01 09:13:53', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITOUT2407010913001', 'EISP360746', -4, -4, 316755, -1267020, '2024-07-01 09:13:53', '2024-07-01 09:13:53', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITOUT2407010913001', 'FHBE272687', -5, -5, 104511, -522555, '2024-07-01 09:13:53', '2024-07-01 09:13:53', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITIN2407030957001', 'CMKZ782111', 1, 1, 403711, 403711, '2024-07-03 09:57:35', '2024-07-03 09:57:35', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITIN2407030958001', 'CDZY211020', 1, 1, 342597, 342597, '2024-07-03 09:58:53', '2024-07-03 09:58:53', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITIN2407091532001', 'TFQG886337', 1, 1, 375785, 375785, '2024-07-09 15:32:52', '2024-07-09 15:32:52', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITIN2407091532001', 'SJQY923758', 1, 1, 425734, 425734, '2024-07-09 15:32:52', '2024-07-09 15:32:52', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITIN2407091532001', 'YELA179001', 1, 1, 238583, 238583, '2024-07-09 15:32:52', '2024-07-09 15:32:52', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITIN2408161020001', 'tehbotol', 12, 12, NULL, 0, '2024-08-16 10:20:23', '2024-08-16 10:20:23', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITIN2408191010001', 'IQUB368808', 1, 1, 445302, 445302, '2024-08-19 10:10:48', '2024-08-19 10:10:48', NULL, NULL, NULL);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITOUT2409061046001', 'YELA179001', -12, -12, 238583, -2862996, '2024-09-06 10:46:40', '2024-09-06 10:46:40', 1, 1, 1);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'IT2409101446004', 'SAXQ706219', 1, 1, 348100, 348100, '2024-09-10 14:46:17', '2024-09-10 14:46:17', 1, 0, 1);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITOUT2409101011004', 'TSTUNT1001', -12, -13, 2500, -30000, '2024-09-10 10:11:35', '2024-09-10 10:11:35', 1, 1, 1);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'IT2409110911001', 'TSTUNT1001', 5, 5, 2500, 12500, '2024-09-11 09:11:36', '2024-09-11 09:11:36', 1, 0, 5);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'IT2409110911001', 'ZVGD761463', 6, 7, 357072, 2142432, '2024-09-11 09:11:36', '2024-09-11 09:11:36', 1, 0, 6);
INSERT INTO "public"."Luv2_transfer_detail_copy1" VALUES ('240617104137', 'ITOUT2409101429004', 'TSTUNT1001', -1, -1, 2500, -2500, '2024-09-10 14:29:01', '2024-09-10 14:29:01', 1, 0, 1);

-- ----------------------------
-- Table structure for Luv2_tutorial
-- ----------------------------
CREATE TABLE "public"."Luv2_tutorial" (
  "id" int4 NOT NULL GENERATED BY DEFAULT AS IDENTITY (
INCREMENT 1
MINVALUE  1
MAXVALUE 2147483647
START 1
CACHE 1
),
  "id_user" int4 NOT NULL,
  "menu" varchar(255) COLLATE "pg_catalog"."default",
  "active" varchar(255) COLLATE "pg_catalog"."default"
)
;

-- ----------------------------
-- Records of Luv2_tutorial
-- ----------------------------
INSERT INTO "public"."Luv2_tutorial" VALUES (69, 3, 'Goods Return', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (70, 3, 'Item Transfer', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (76, 4, 'Goods Receipt', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (77, 4, 'Goods Return', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (78, 4, 'Item Transfer', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (79, 5, 'Home', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (80, 5, 'Cashier', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (81, 5, 'Member', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (74, 4, 'Master', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (82, 5, 'Master', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (83, 5, 'Opname', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (42, 6, 'Master', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (84, 5, 'Goods Receipt', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (85, 5, 'Goods Return', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (86, 5, 'Item Transfer', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (87, 6, 'Home', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (88, 6, 'Cashier', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (89, 6, 'Member', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (90, 6, 'Master', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (50, 5, 'Master', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (45, 6, 'Goods Return', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (46, 6, 'Item Transfer', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (53, 5, 'Goods Return', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (54, 5, 'Item Transfer', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (58, 6, 'Master', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (61, 6, 'Goods Return', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (66, 8, 'Master', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (75, 4, 'Opname', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (91, 6, 'Opname', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (92, 6, 'Goods Receipt', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (93, 6, 'Goods Return', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (94, 6, 'Item Transfer', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (95, 7, 'Home', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (67, 3, 'Opname', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (43, 6, 'Opname', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (51, 5, 'Opname', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (62, 6, 'Item Transfer', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (59, 6, 'Opname', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (23, 1, 'Master', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (26, 1, 'Goods Return', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (96, 7, 'Cashier', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (24, 1, 'Opname', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (97, 7, 'Member', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (27, 1, 'Item Transfer', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (98, 7, 'Master', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (25, 1, 'Goods Receipt', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (99, 7, 'Opname', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (100, 7, 'Goods Receipt', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (101, 7, 'Goods Return', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (102, 7, 'Item Transfer', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (103, 7, 'Home', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (104, 7, 'Cashier', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (105, 7, 'Member', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (106, 7, 'Master', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (107, 7, 'Opname', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (108, 7, 'Goods Receipt', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (109, 7, 'Goods Return', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (110, 7, 'Item Transfer', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (111, 7, 'Home', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (112, 7, 'Cashier', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (113, 7, 'Member', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (114, 7, 'Master', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (115, 7, 'Opname', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (116, 7, 'Goods Receipt', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (117, 7, 'Goods Return', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (118, 7, 'Item Transfer', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (68, 3, 'Goods Receipt', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (22, 1, 'Member', '');
INSERT INTO "public"."Luv2_tutorial" VALUES (119, 7, 'Home', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (120, 7, 'Cashier', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (121, 7, 'Member', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (122, 7, 'Master', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (123, 7, 'Opname', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (124, 7, 'Goods Receipt', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (125, 7, 'Goods Return', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (126, 7, 'Item Transfer', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (63, 3, 'Home', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (39, 6, 'Home', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (47, 5, 'Home', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (55, 6, 'Home', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (127, 7, 'Home', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (128, 7, 'Cashier', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (129, 7, 'Member', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (36, 5, 'Goods Receipt', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (44, 6, 'Goods Receipt', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (52, 5, 'Goods Receipt', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (60, 6, 'Goods Receipt', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (130, 7, 'Master', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (131, 7, 'Opname', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (132, 7, 'Goods Receipt', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (133, 7, 'Goods Return', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (134, 7, 'Item Transfer', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (135, 7, 'Home', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (136, 7, 'Cashier', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (137, 7, 'Member', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (138, 7, 'Master', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (139, 7, 'Opname', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (140, 7, 'Goods Receipt', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (73, 4, 'Member', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (141, 7, 'Goods Return', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (65, 3, 'Member', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (41, 6, 'Member', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (49, 5, 'Member', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (57, 6, 'Member', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (142, 7, 'Item Transfer', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (143, 7, 'Home', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (144, 7, 'Cashier', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (145, 7, 'Member', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (146, 7, 'Master', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (147, 7, 'Opname', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (148, 7, 'Goods Receipt', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (149, 7, 'Goods Return', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (150, 7, 'Item Transfer', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (151, 7, 'Home', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (152, 7, 'Cashier', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (153, 7, 'Member', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (154, 7, 'Master', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (155, 7, 'Opname', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (156, 7, 'Goods Receipt', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (157, 7, 'Goods Return', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (158, 7, 'Item Transfer', 'Y');
INSERT INTO "public"."Luv2_tutorial" VALUES (21, 1, 'Cashier', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (20, 1, 'Home', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (71, 4, 'Home', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (72, 4, 'Cashier', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (64, 3, 'Cashier', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (40, 6, 'Cashier', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (48, 5, 'Cashier', 'N');
INSERT INTO "public"."Luv2_tutorial" VALUES (56, 6, 'Cashier', 'N');

-- ----------------------------
-- Table structure for Luv2_unit
-- ----------------------------
CREATE TABLE "public"."Luv2_unit" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "name" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "id" int4 NOT NULL
)
;

-- ----------------------------
-- Records of Luv2_unit
-- ----------------------------
INSERT INTO "public"."Luv2_unit" VALUES ('240617104137', 'Lusin', '2024-09-02 16:02:23', '2024-09-02 16:02:23', 1);
INSERT INTO "public"."Luv2_unit" VALUES ('240617104137', 'BOX', '2024-09-03 10:39:11', '2024-09-03 10:39:11', 2);
INSERT INTO "public"."Luv2_unit" VALUES ('240617104137', 'PLASTIK', '2024-10-08 15:19:21', '2024-10-08 15:19:21', 3);

-- ----------------------------
-- Table structure for Luv2_user
-- ----------------------------
CREATE TABLE "public"."Luv2_user" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "whs_code" varchar(10) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "username" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "password" varchar(255) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "active" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'Y'::bpchar,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "id" int4,
  "tutorials" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'Y'::character varying,
  "role" varchar(255) COLLATE "pg_catalog"."default",
  "email" varchar(255) COLLATE "pg_catalog"."default",
  "session_token" varchar(255) COLLATE "pg_catalog"."default"
)
;

-- ----------------------------
-- Records of Luv2_user
-- ----------------------------
INSERT INTO "public"."Luv2_user" VALUES ('241023084642', '-', '241023084642', 'testexpired2', '$2y$10$DSIf2e53FQ637rtt6VQlJOBx/koInrfKVD3NegILAXX4XcmIHuzwK', 'Y', '2024-10-23 08:46:42', '2024-10-23 08:46:42', 6, 'Y', 'Admin', 'testexpired2@gmail.com', NULL);
INSERT INTO "public"."Luv2_user" VALUES ('241011134344', '-', '241011134344', 'logitech@gmail.com', '$2y$10$UDudw3ix8p/COE.UuKDXS.m.eK0CWWMdySeBxglX.gf4B3XjDcpMm', 'Y', '2024-10-11 13:43:44', '2024-10-11 13:43:44', 4, 'Y', 'Admin', NULL, NULL);
INSERT INTO "public"."Luv2_user" VALUES ('241023084220', '-', '241023084220', 'testexpired', '$2y$10$u3pNojFOu9aJj02UUCFeB..5NYr8ySJbQ4iSewPG739gZIwbjGPmO', 'Y', '2024-10-23 08:42:20', '2024-10-23 11:02:27', 5, 'Y', 'Admin', 'testexpired@gmail.com', 'igEjHI4BM1Tb76dLHmpeXwnDMQV4qB41sv3zG4G2HZHqJVKzoTjkaFGdGhIy');
INSERT INTO "public"."Luv2_user" VALUES ('241025110715', '-', '241025110715', 'belajar', '$2y$10$u9XSIdZoru6TX69j6CI5QenNw9LQZTpgI1FbQTo/DZlgqV7xVDyGW', 'Y', '2024-10-25 11:07:15', '2024-10-25 11:26:52', 7, 'Y', 'Admin', 'belajarfullstack999@gmail.com', 'B7CHn4EurRW56MGjJvCESK8GixaZw8b2PiUo9QMP0MozyXRpm0MXdHuCnWdZ');
INSERT INTO "public"."Luv2_user" VALUES ('240617104137', 'PIDPAD', '240617104137', 'kasir@gmail.com', '$2y$10$etUzEzKoX4RI1jCaOs.9CeKFJ2d26t1HzCPDaXo9uwCwMlRtkEv8m', 'Y', '2024-06-17 10:41:37', '2024-10-28 08:46:05', 1, 'Y', 'Cashier', 'adiwarsa03@gmail.com', 'DrEa2EGfaojDHjGoC4BHNoE7SHvuZqompDL5RqFLyUJuaZrr4YA97aFj2WDc');
INSERT INTO "public"."Luv2_user" VALUES ('240617104137', 'PIDPAD', '240807133423', 'gudang@gmail.com', '$2y$10$etUzEzKoX4RI1jCaOs.9CeKFJ2d26t1HzCPDaXo9uwCwMlRtkEv8m', 'Y', '2024-08-07 13:34:23', '2024-10-28 08:36:23', 3, 'Y', 'Gudang', NULL, 'iYLJwbNZku7wi78ug0KVYfCCNPNSTgbrpQzmW6kcF59EU2puwLIV4Rk8w41F');
INSERT INTO "public"."Luv2_user" VALUES ('240617104137', '-', '240807133999', 'admin@gmail.com', '$2y$10$etUzEzKoX4RI1jCaOs.9CeKFJ2d26t1HzCPDaXo9uwCwMlRtkEv8m', 'Y', '2024-08-07 13:34:23', '2024-10-28 09:46:31', 2, 'N', 'Admin', NULL, 'TlWUSVCajyqhRp4JF5gfmVUEDGM8FFbQpcoTk1dZ72woy0HcLUIXIOxWMMBx');

-- ----------------------------
-- Table structure for Luv2_user_auth
-- ----------------------------
CREATE TABLE "public"."Luv2_user_auth" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "user_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "auth_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "auth" varchar(4) COLLATE "pg_catalog"."default" DEFAULT 'CRUD'::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6)
)
;

-- ----------------------------
-- Records of Luv2_user_auth
-- ----------------------------

-- ----------------------------
-- Table structure for Luv2_user_group
-- ----------------------------
CREATE TABLE "public"."Luv2_user_group" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "name" varchar(50) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "license" int4 DEFAULT 0,
  "used" int4 DEFAULT 0,
  "auth_code" varchar(12) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "auth" varchar(4) COLLATE "pg_catalog"."default" DEFAULT 'CRUD'::character varying,
  "created_at" timestamp(6),
  "updated_at" timestamp(6)
)
;

-- ----------------------------
-- Records of Luv2_user_group
-- ----------------------------

-- ----------------------------
-- Table structure for Luv2_warehouse
-- ----------------------------
CREATE TABLE "public"."Luv2_warehouse" (
  "company_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "name" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "pricelist_code" varchar(12) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "address" varchar(100) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "phone" varchar(30) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "email" varchar(50) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
  "footer" text COLLATE "pg_catalog"."default" DEFAULT ''::text,
  "active" varchar(1) COLLATE "pg_catalog"."default" DEFAULT 'Y'::bpchar,
  "created_at" timestamp(6),
  "updated_at" timestamp(6)
)
;

-- ----------------------------
-- Records of Luv2_warehouse
-- ----------------------------
INSERT INTO "public"."Luv2_warehouse" VALUES ('240617104137', 'PIDPAD', 'Pidi Pada Seminyak', 'PLInter', 'Jl. Imam Bonjol Badung, Kabupaten Badung, Bali 80361', '085113246213', 'pidpad@seminyak.com', 'Please SIGN the Receipt\nto avoid overpayment\nExchange can only in 24 hours\nfor the different colour and size\nin the same code only\n', 'Y', '2024-03-01 15:41:14', '2024-08-30 10:53:21');
INSERT INTO "public"."Luv2_warehouse" VALUES ('240617104137', 'PIDPADTSM', 'Wadi Daww', 'PLInter', 'Jl. Raya Kampus Udayana No.20, Jimbaran, Badung, Kabupaten Badung, Bali 80361', '089621791541', 'pidpad@tsm.com', 'Please SIGN the Receipt\nto avoid overpayment\nExchange can only in 24 hours\nfor the different colour and size\nin the same code only\n', 'Y', '2024-08-29 14:18:07', '2024-08-29 14:18:07');

-- ----------------------------
-- Table structure for password_reset_tokens
-- ----------------------------
CREATE TABLE "public"."password_reset_tokens" (
  "email" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "token" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "created_at" timestamp(0)
)
;

-- ----------------------------
-- Records of password_reset_tokens
-- ----------------------------
INSERT INTO "public"."password_reset_tokens" VALUES ('adiwarsa03@gmail.com', '$2y$10$HvjBBAmYBw6cccruFD2XrO1ajlO.thm7obgnBpqD/b18qAXIxgdsm', '2024-10-18 14:12:59');

-- ----------------------------
-- Table structure for password_resets
-- ----------------------------
CREATE TABLE "public"."password_resets" (
  "email" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "token" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "created_at" timestamp(0)
)
;

-- ----------------------------
-- Records of password_resets
-- ----------------------------

-- ----------------------------
-- Function structure for trig_invoice_delete
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."trig_invoice_delete"();
CREATE OR REPLACE FUNCTION "public"."trig_invoice_delete"()
  RETURNS "pg_catalog"."trigger" AS $BODY$
BEGIN
		BEGIN
				DELETE FROM "Luv2_invoice_detail" WHERE no=old.no and company_code=old.company_code;
		EXCEPTION
    WHEN OTHERS THEN
    END;
    RETURN NEW;
END;
$BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;

-- ----------------------------
-- Function structure for trig_invoice_detail_delete
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."trig_invoice_detail_delete"();
CREATE OR REPLACE FUNCTION "public"."trig_invoice_detail_delete"()
  RETURNS "pg_catalog"."trigger" AS $BODY$
BEGIN
		BEGIN
				DELETE FROM "Luv2_item_trans" WHERE no_trans=old.no and company_code=old.company_code and linenum=old.linenum and tipe='4';
		EXCEPTION
        WHEN OTHERS THEN
    END;
    RETURN NEW;
END;
$BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;

-- ----------------------------
-- Function structure for trig_invoice_detail_insert
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."trig_invoice_detail_insert"();
CREATE OR REPLACE FUNCTION "public"."trig_invoice_detail_insert"()
  RETURNS "pg_catalog"."trigger" AS $BODY$
BEGIN
		BEGIN
				INSERT INTO "Luv2_item_trans" (company_code,whs_code,tipe,no_trans,date,item_code,linenum,qty,canceled,created_at,updated_at)
        SELECT a.company_code,a.whs_code,'4',a.no,a.date,b.item_code,b.linenum,b.qty*-1,'N',a.created_at,a.updated_at
        FROM "Luv2_invoice" a inner join "Luv2_invoice_detail" b on a.company_code=b.company_code and a.no=b.no
        WHERE a.no=new.no and a.company_code=new.company_code and b.linenum=new.linenum;
		EXCEPTION
        WHEN OTHERS THEN
    END;
    RETURN NEW;
END;
$BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;

-- ----------------------------
-- Function structure for trig_invoice_update
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."trig_invoice_update"();
CREATE OR REPLACE FUNCTION "public"."trig_invoice_update"()
  RETURNS "pg_catalog"."trigger" AS $BODY$
BEGIN
		BEGIN
				UPDATE "Luv2_item_trans" SET "canceled"=NEW."deleted" WHERE "company_code"=NEW."company_code" and "no_trans" = NEW."no" and "tipe"='4';
		EXCEPTION
    WHEN OTHERS THEN
    END;
    RETURN NEW;
END;
$BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;

-- ----------------------------
-- Function structure for trig_receipt_delete
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."trig_receipt_delete"();
CREATE OR REPLACE FUNCTION "public"."trig_receipt_delete"()
  RETURNS "pg_catalog"."trigger" AS $BODY$
BEGIN
		BEGIN
				DELETE FROM "Luv2_receipt_detail" WHERE no=old.no and company_code=old.company_code;
		EXCEPTION
    WHEN OTHERS THEN
    END;
    RETURN NEW;
END;
$BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;

-- ----------------------------
-- Function structure for trig_receipt_detail_delete
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."trig_receipt_detail_delete"();
CREATE OR REPLACE FUNCTION "public"."trig_receipt_detail_delete"()
  RETURNS "pg_catalog"."trigger" AS $BODY$
BEGIN
		BEGIN
				DELETE FROM "Luv2_item_trans" WHERE no_trans=old.no and company_code=old.company_code and linenum=old.linenum and tipe='1';
		EXCEPTION
        WHEN OTHERS THEN
    END;
    RETURN NEW;
END;
$BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;

-- ----------------------------
-- Function structure for trig_receipt_detail_insert
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."trig_receipt_detail_insert"();
CREATE OR REPLACE FUNCTION "public"."trig_receipt_detail_insert"()
  RETURNS "pg_catalog"."trigger" AS $BODY$
BEGIN
		BEGIN
				INSERT INTO "Luv2_item_trans" (company_code,whs_code,tipe,no_trans,date,item_code,linenum,qty,canceled,created_at,updated_at)
        SELECT a.company_code,a.whs_code,'1',a.no,a.date,b.item_code,b.linenum,b.qty,'N',a.created_at,a.updated_at
        FROM "Luv2_receipt" a inner join "Luv2_receipt_detail" b on a.company_code=b.company_code and a.no=b.no
        WHERE a.no=new.no and a.company_code=new.company_code and b.linenum=new.linenum;
		EXCEPTION
        WHEN OTHERS THEN
    END;
    RETURN NEW;
END;
$BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;

-- ----------------------------
-- Function structure for trig_receipt_update
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."trig_receipt_update"();
CREATE OR REPLACE FUNCTION "public"."trig_receipt_update"()
  RETURNS "pg_catalog"."trigger" AS $BODY$
BEGIN
		BEGIN
				UPDATE "Luv2_item_trans" SET "canceled"=NEW."deleted" WHERE "company_code"=NEW."company_code" and "no_trans" = NEW."no" and "tipe"='1';
		EXCEPTION
    WHEN OTHERS THEN
    END;
    RETURN NEW;
END;
$BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;

-- ----------------------------
-- Function structure for trig_return_delete
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."trig_return_delete"();
CREATE OR REPLACE FUNCTION "public"."trig_return_delete"()
  RETURNS "pg_catalog"."trigger" AS $BODY$
BEGIN
		BEGIN
				DELETE FROM "Luv2_return_detail" WHERE no=old.no and company_code=old.company_code;
		EXCEPTION
    WHEN OTHERS THEN
    END;
    RETURN NEW;
END;
$BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;

-- ----------------------------
-- Function structure for trig_return_detail_delete
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."trig_return_detail_delete"();
CREATE OR REPLACE FUNCTION "public"."trig_return_detail_delete"()
  RETURNS "pg_catalog"."trigger" AS $BODY$
BEGIN
		BEGIN
				DELETE FROM "Luv2_item_trans" WHERE no_trans=old.no and company_code=old.company_code and linenum=old.linenum and tipe='2';
		EXCEPTION
        WHEN OTHERS THEN
    END;
    RETURN NEW;
END;
$BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;

-- ----------------------------
-- Function structure for trig_return_detail_insert
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."trig_return_detail_insert"();
CREATE OR REPLACE FUNCTION "public"."trig_return_detail_insert"()
  RETURNS "pg_catalog"."trigger" AS $BODY$
BEGIN
		BEGIN
				INSERT INTO "Luv2_item_trans" (company_code,whs_code,tipe,no_trans,date,item_code,linenum,qty,canceled,created_at,updated_at)
        SELECT a.company_code,a.whs_code,'2',a.no,a.date,b.item_code,b.linenum,b.qty*-1,'N',a.created_at,a.updated_at
        FROM "Luv2_return" a inner join "Luv2_return_detail" b on a.company_code=b.company_code and a.no=b.no
        WHERE a.no=new.no and a.company_code=new.company_code and b.linenum=new.linenum;
		EXCEPTION
        WHEN OTHERS THEN
    END;
    RETURN NEW;
END;
$BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;

-- ----------------------------
-- Function structure for trig_return_update
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."trig_return_update"();
CREATE OR REPLACE FUNCTION "public"."trig_return_update"()
  RETURNS "pg_catalog"."trigger" AS $BODY$
BEGIN
		BEGIN
				UPDATE "Luv2_item_trans" SET "canceled"=NEW."deleted" WHERE "company_code"=NEW."company_code" and "no_trans" = NEW."no" and "tipe"='2';
		EXCEPTION
    WHEN OTHERS THEN
    END;
    RETURN NEW;
END;
$BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;

-- ----------------------------
-- Function structure for trig_transfer_update
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."trig_transfer_update"();
CREATE OR REPLACE FUNCTION "public"."trig_transfer_update"()
  RETURNS "pg_catalog"."trigger" AS $BODY$
BEGIN
		BEGIN
        IF (old.status = '1' and (new.status='2' or new.status='3'))
        THEN
				INSERT INTO "Luv2_item_trans" (company_code,whs_code,tipe,no_trans,date,item_code,linenum,qty,canceled,created_at,updated_at)
        SELECT a.company_code,a.whs_code,'3',a.no,a.date,b.item_code,b.linenum,b.qty_open*-1,'N',a.created_at,a.updated_at
        FROM "Luv2_transfer" a inner join "Luv2_transfer_detail" b on a.company_code=b.company_code and a.no=b.no
        WHERE a.no=new.no and a.company_code=new.company_code;
        
        INSERT INTO "Luv2_item_trans" (company_code,whs_code,tipe,no_trans,date,item_code,linenum,qty,canceled,created_at,updated_at)
        SELECT a.company_code,a.whs_code_to,'3',a.no,a.date,b.item_code,b.linenum,b.qty_close,'N',a.created_at,a.updated_at
        FROM "Luv2_transfer" a inner join "Luv2_transfer_detail" b on a.company_code=b.company_code and a.no=b.no
        WHERE a.no=new.no and a.company_code=new.company_code;
        
        END IF;
        
		EXCEPTION
        WHEN OTHERS THEN
    END;
    RETURN NEW;
END;
$BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."Luv2_activity_log_id_seq"
OWNED BY "public"."Luv2_activity_log"."id";
SELECT setval('"public"."Luv2_activity_log_id_seq"', 664, true);

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."Luv2_carts_id_seq"
OWNED BY "public"."Luv2_carts"."id";
SELECT setval('"public"."Luv2_carts_id_seq"', 8, true);

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."Luv2_tutorial_id_seq"
OWNED BY "public"."Luv2_tutorial"."id";
SELECT setval('"public"."Luv2_tutorial_id_seq"', 158, true);

-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."luv2_renewal_id_seq"
OWNED BY "public"."Luv2_renewal"."id";
SELECT setval('"public"."luv2_renewal_id_seq"', 11, true);

-- ----------------------------
-- Auto increment value for Luv2_activity_log
-- ----------------------------
SELECT setval('"public"."Luv2_activity_log_id_seq"', 664, true);

-- ----------------------------
-- Primary Key structure for table Luv2_activity_log
-- ----------------------------
ALTER TABLE "public"."Luv2_activity_log" ADD CONSTRAINT "Luv2_activity_log_pkey" PRIMARY KEY ("id", "company_code", "whs_code");

-- ----------------------------
-- Primary Key structure for table Luv2_adjust
-- ----------------------------
ALTER TABLE "public"."Luv2_adjust" ADD CONSTRAINT "Luv2_adjust_pkey" PRIMARY KEY ("company_code", "whs_code", "code", "user_code", "type");

-- ----------------------------
-- Indexes structure for table Luv2_auth
-- ----------------------------
CREATE INDEX "auth_code" ON "public"."Luv2_auth" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_auth
-- ----------------------------
ALTER TABLE "public"."Luv2_auth" ADD CONSTRAINT "Luv2_auth_pkey" PRIMARY KEY ("code");

-- ----------------------------
-- Indexes structure for table Luv2_brand
-- ----------------------------
CREATE INDEX "brand_code" ON "public"."Luv2_brand" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "brand_company_code" ON "public"."Luv2_brand" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "brand_name" ON "public"."Luv2_brand" USING btree (
  "name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_brand
-- ----------------------------
ALTER TABLE "public"."Luv2_brand" ADD CONSTRAINT "Luv2_brand_pkey" PRIMARY KEY ("company_code", "code");

-- ----------------------------
-- Indexes structure for table Luv2_brand_temp
-- ----------------------------
CREATE INDEX "brand_code_copy1" ON "public"."Luv2_brand_temp" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "brand_company_code_copy1" ON "public"."Luv2_brand_temp" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "brand_name_copy1" ON "public"."Luv2_brand_temp" USING btree (
  "name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_brand_temp
-- ----------------------------
ALTER TABLE "public"."Luv2_brand_temp" ADD CONSTRAINT "Luv2_brand_copy1_pkey3" PRIMARY KEY ("company_code", "code", "id_user");

-- ----------------------------
-- Auto increment value for Luv2_carts
-- ----------------------------
SELECT setval('"public"."Luv2_carts_id_seq"', 8, true);

-- ----------------------------
-- Primary Key structure for table Luv2_carts
-- ----------------------------
ALTER TABLE "public"."Luv2_carts" ADD CONSTRAINT "Luv2_carts_pkey" PRIMARY KEY ("id", "linenum", "company_code", "whs_code", "user_code");

-- ----------------------------
-- Indexes structure for table Luv2_category
-- ----------------------------
CREATE INDEX "category_code" ON "public"."Luv2_category" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "category_company_code" ON "public"."Luv2_category" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "category_name" ON "public"."Luv2_category" USING btree (
  "name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_category
-- ----------------------------
ALTER TABLE "public"."Luv2_category" ADD CONSTRAINT "Luv2_brand_copy1_pkey" PRIMARY KEY ("company_code", "code");

-- ----------------------------
-- Indexes structure for table Luv2_category_temp
-- ----------------------------
CREATE INDEX "category_code_copy1" ON "public"."Luv2_category_temp" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "category_company_code_copy1" ON "public"."Luv2_category_temp" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "category_name_copy1" ON "public"."Luv2_category_temp" USING btree (
  "name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_category_temp
-- ----------------------------
ALTER TABLE "public"."Luv2_category_temp" ADD CONSTRAINT "Luv2_category_copy1_pkey" PRIMARY KEY ("company_code", "code", "id_user");

-- ----------------------------
-- Indexes structure for table Luv2_company
-- ----------------------------
CREATE INDEX "company_code" ON "public"."Luv2_company" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_company
-- ----------------------------
ALTER TABLE "public"."Luv2_company" ADD CONSTRAINT "Luv2_company_pkey" PRIMARY KEY ("code");

-- ----------------------------
-- Indexes structure for table Luv2_invoice
-- ----------------------------
CREATE INDEX "invoice_company_code" ON "public"."Luv2_invoice" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "invoice_date" ON "public"."Luv2_invoice" USING btree (
  "date" "pg_catalog"."date_ops" ASC NULLS LAST
);
CREATE INDEX "invoice_no" ON "public"."Luv2_invoice" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "invoice_no_inv" ON "public"."Luv2_invoice" USING btree (
  "no_inv" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "invoice_whs_code" ON "public"."Luv2_invoice" USING btree (
  "whs_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Triggers structure for table Luv2_invoice
-- ----------------------------
CREATE TRIGGER "trig_invoice_delete" AFTER DELETE ON "public"."Luv2_invoice"
FOR EACH ROW
EXECUTE PROCEDURE "public"."trig_invoice_delete"();
CREATE TRIGGER "trig_invoice_update" AFTER UPDATE ON "public"."Luv2_invoice"
FOR EACH ROW
EXECUTE PROCEDURE "public"."trig_invoice_update"();

-- ----------------------------
-- Primary Key structure for table Luv2_invoice
-- ----------------------------
ALTER TABLE "public"."Luv2_invoice" ADD CONSTRAINT "Luv2_invoice_pkey" PRIMARY KEY ("company_code", "no", "whs_code");

-- ----------------------------
-- Indexes structure for table Luv2_invoice_detail
-- ----------------------------
CREATE INDEX "invoice_detail_barcode" ON "public"."Luv2_invoice_detail" USING btree (
  "barcode" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "invoice_detail_code" ON "public"."Luv2_invoice_detail" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "invoice_detail_company_code" ON "public"."Luv2_invoice_detail" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "invoice_detail_linenum" ON "public"."Luv2_invoice_detail" USING btree (
  "linenum" "pg_catalog"."int4_ops" ASC NULLS LAST
);
CREATE INDEX "invoice_detail_name" ON "public"."Luv2_invoice_detail" USING btree (
  "name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "invoice_detail_no" ON "public"."Luv2_invoice_detail" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "invoice_detail_whs_code" ON "public"."Luv2_invoice_detail" USING btree (
  "whs_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Triggers structure for table Luv2_invoice_detail
-- ----------------------------
CREATE TRIGGER "trig_invoice_detail_delete" AFTER DELETE ON "public"."Luv2_invoice_detail"
FOR EACH ROW
EXECUTE PROCEDURE "public"."trig_invoice_detail_delete"();
CREATE TRIGGER "trig_invoice_detail_insert" AFTER INSERT ON "public"."Luv2_invoice_detail"
FOR EACH ROW
EXECUTE PROCEDURE "public"."trig_invoice_detail_insert"();

-- ----------------------------
-- Primary Key structure for table Luv2_invoice_detail
-- ----------------------------
ALTER TABLE "public"."Luv2_invoice_detail" ADD CONSTRAINT "Luv2_invoice_detail_pkey" PRIMARY KEY ("company_code", "no", "code", "linenum");

-- ----------------------------
-- Indexes structure for table Luv2_item
-- ----------------------------
CREATE INDEX "item_barcode" ON "public"."Luv2_item" USING btree (
  "barcode" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_brand_code" ON "public"."Luv2_item" USING btree (
  "brand_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_category_code" ON "public"."Luv2_item" USING btree (
  "category_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_code" ON "public"."Luv2_item" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_company_code" ON "public"."Luv2_item" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_name" ON "public"."Luv2_item" USING btree (
  "name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_size_code" ON "public"."Luv2_item" USING btree (
  "size_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_item
-- ----------------------------
ALTER TABLE "public"."Luv2_item" ADD CONSTRAINT "Luv2_item_pkey" PRIMARY KEY ("company_code", "code", "whs_code");

-- ----------------------------
-- Indexes structure for table Luv2_item_pricelist
-- ----------------------------
CREATE INDEX "item_pricelist_company_code" ON "public"."Luv2_item_pricelist" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_pricelist_item_code" ON "public"."Luv2_item_pricelist" USING btree (
  "item_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_pricelist_pricelist_code" ON "public"."Luv2_item_pricelist" USING btree (
  "pricelist_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_item_pricelist
-- ----------------------------
ALTER TABLE "public"."Luv2_item_pricelist" ADD CONSTRAINT "Luv2_item_pricelist_pkey" PRIMARY KEY ("company_code", "item_code", "pricelist_code", "whs_code");

-- ----------------------------
-- Indexes structure for table Luv2_item_pricelist_temp
-- ----------------------------
CREATE INDEX "item_pricelist_company_code_copy1" ON "public"."Luv2_item_pricelist_temp" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_pricelist_item_code_copy1" ON "public"."Luv2_item_pricelist_temp" USING btree (
  "item_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_pricelist_pricelist_code_copy1" ON "public"."Luv2_item_pricelist_temp" USING btree (
  "pricelist_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_item_pricelist_temp
-- ----------------------------
ALTER TABLE "public"."Luv2_item_pricelist_temp" ADD CONSTRAINT "Luv2_item_pricelist_copy1_pkey" PRIMARY KEY ("company_code", "item_code", "pricelist_code", "id_user");

-- ----------------------------
-- Indexes structure for table Luv2_item_temp
-- ----------------------------
CREATE INDEX "item_barcode_copy1" ON "public"."Luv2_item_temp" USING btree (
  "barcode" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_brand_code_copy1" ON "public"."Luv2_item_temp" USING btree (
  "brand_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_category_code_copy1" ON "public"."Luv2_item_temp" USING btree (
  "category_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_code_copy1" ON "public"."Luv2_item_temp" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_company_code_copy1" ON "public"."Luv2_item_temp" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_name_copy1" ON "public"."Luv2_item_temp" USING btree (
  "name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_size_code_copy1" ON "public"."Luv2_item_temp" USING btree (
  "size_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_item_temp
-- ----------------------------
ALTER TABLE "public"."Luv2_item_temp" ADD CONSTRAINT "Luv2_item_copy1_pkey" PRIMARY KEY ("company_code", "code");

-- ----------------------------
-- Indexes structure for table Luv2_item_trans
-- ----------------------------
CREATE INDEX "item_trans_company_code" ON "public"."Luv2_item_trans" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_trans_date" ON "public"."Luv2_item_trans" USING btree (
  "date" "pg_catalog"."date_ops" ASC NULLS LAST
);
CREATE INDEX "item_trans_item_code" ON "public"."Luv2_item_trans" USING btree (
  "item_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_trans_linenum" ON "public"."Luv2_item_trans" USING btree (
  "linenum" "pg_catalog"."int4_ops" ASC NULLS LAST
);
CREATE INDEX "item_trans_tipe" ON "public"."Luv2_item_trans" USING btree (
  "tipe" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "item_trans_whs_code" ON "public"."Luv2_item_trans" USING btree (
  "whs_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_item_trans
-- ----------------------------
ALTER TABLE "public"."Luv2_item_trans" ADD CONSTRAINT "Luv2_item_trans_pkey" PRIMARY KEY ("company_code", "whs_code", "tipe", "no_trans", "item_code", "linenum");

-- ----------------------------
-- Primary Key structure for table Luv2_item_unit
-- ----------------------------
ALTER TABLE "public"."Luv2_item_unit" ADD CONSTRAINT "Luv2_item_unit_pkey" PRIMARY KEY ("company_code", "item_code", "id_unit", "whs_code");

-- ----------------------------
-- Indexes structure for table Luv2_member
-- ----------------------------
CREATE INDEX "member_code" ON "public"."Luv2_member" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "member_company_code" ON "public"."Luv2_member" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."varchar_ops" ASC NULLS LAST
);
CREATE INDEX "member_name" ON "public"."Luv2_member" USING btree (
  "name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_member
-- ----------------------------
ALTER TABLE "public"."Luv2_member" ADD CONSTRAINT "Luv2_member_pkey" PRIMARY KEY ("company_code", "code");

-- ----------------------------
-- Indexes structure for table Luv2_member_otp
-- ----------------------------
CREATE INDEX "member_otp_company_code" ON "public"."Luv2_member_otp" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "member_otp_member_code" ON "public"."Luv2_member_otp" USING btree (
  "member_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_member_otp
-- ----------------------------
ALTER TABLE "public"."Luv2_member_otp" ADD CONSTRAINT "Luv2_member_otp_pkey" PRIMARY KEY ("company_code", "member_code");

-- ----------------------------
-- Indexes structure for table Luv2_opname
-- ----------------------------
CREATE INDEX "opname_company_code" ON "public"."Luv2_opname" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "opname_date" ON "public"."Luv2_opname" USING btree (
  "date" "pg_catalog"."date_ops" ASC NULLS LAST
);
CREATE INDEX "opname_no" ON "public"."Luv2_opname" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "opname_user_code" ON "public"."Luv2_opname" USING btree (
  "user_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "opname_whs_code" ON "public"."Luv2_opname" USING btree (
  "whs_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_opname
-- ----------------------------
ALTER TABLE "public"."Luv2_opname" ADD CONSTRAINT "Luv2_receipt_copy1_pkey" PRIMARY KEY ("company_code", "no", "whs_code");

-- ----------------------------
-- Primary Key structure for table Luv2_opname_chunk
-- ----------------------------
ALTER TABLE "public"."Luv2_opname_chunk" ADD CONSTRAINT "Luv2_adjust_copy1_pkey" PRIMARY KEY ("company_code", "whs_code", "code", "user_code", "type");

-- ----------------------------
-- Indexes structure for table Luv2_opname_detail
-- ----------------------------
CREATE INDEX "opname_detail_company_code" ON "public"."Luv2_opname_detail" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "opname_detail_item_code" ON "public"."Luv2_opname_detail" USING btree (
  "item_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "opname_detail_no" ON "public"."Luv2_opname_detail" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_opname_detail
-- ----------------------------
ALTER TABLE "public"."Luv2_opname_detail" ADD CONSTRAINT "Luv2_opname_detail_pkey" PRIMARY KEY ("company_code", "no", "item_code");

-- ----------------------------
-- Indexes structure for table Luv2_opname_detail_temp
-- ----------------------------
CREATE INDEX "opname_detail_temp_company_code" ON "public"."Luv2_opname_detail_temp" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "opname_detail_temp_item_code" ON "public"."Luv2_opname_detail_temp" USING btree (
  "item_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "opname_detail_temp_no" ON "public"."Luv2_opname_detail_temp" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "opname_detail_temp_user_code" ON "public"."Luv2_opname_detail_temp" USING btree (
  "user_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_opname_detail_temp
-- ----------------------------
ALTER TABLE "public"."Luv2_opname_detail_temp" ADD CONSTRAINT "Luv2_opname_detail_copy1_pkey" PRIMARY KEY ("company_code", "no", "item_code");

-- ----------------------------
-- Indexes structure for table Luv2_posregister
-- ----------------------------
CREATE INDEX "posregister_code" ON "public"."Luv2_posregister" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "posregister_company_code" ON "public"."Luv2_posregister" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "posregister_whs_code" ON "public"."Luv2_posregister" USING btree (
  "whs_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_posregister
-- ----------------------------
ALTER TABLE "public"."Luv2_posregister" ADD CONSTRAINT "Luv2_posregister_pkey" PRIMARY KEY ("company_code", "whs_code", "code");

-- ----------------------------
-- Indexes structure for table Luv2_pricelist
-- ----------------------------
CREATE INDEX "pricelist_code" ON "public"."Luv2_pricelist" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "pricelist_company_code" ON "public"."Luv2_pricelist" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "pricelist_name" ON "public"."Luv2_pricelist" USING btree (
  "name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_pricelist
-- ----------------------------
ALTER TABLE "public"."Luv2_pricelist" ADD CONSTRAINT "Luv2_brand_copy1_pkey2" PRIMARY KEY ("company_code", "code");

-- ----------------------------
-- Indexes structure for table Luv2_pricelist_temp
-- ----------------------------
CREATE INDEX "pricelist_code_copy1" ON "public"."Luv2_pricelist_temp" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "pricelist_company_code_copy1" ON "public"."Luv2_pricelist_temp" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "pricelist_name_copy1" ON "public"."Luv2_pricelist_temp" USING btree (
  "name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_pricelist_temp
-- ----------------------------
ALTER TABLE "public"."Luv2_pricelist_temp" ADD CONSTRAINT "Luv2_pricelist_copy1_pkey" PRIMARY KEY ("company_code", "code", "id_user");

-- ----------------------------
-- Indexes structure for table Luv2_promo
-- ----------------------------
CREATE INDEX "promo_benefit" ON "public"."Luv2_promo" USING btree (
  "benefit" "pg_catalog"."int2_ops" ASC NULLS LAST
);
CREATE INDEX "promo_company_code" ON "public"."Luv2_promo" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_from_date" ON "public"."Luv2_promo" USING btree (
  "from_date" "pg_catalog"."date_ops" ASC NULLS LAST
);
CREATE INDEX "promo_name" ON "public"."Luv2_promo" USING btree (
  "name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_no" ON "public"."Luv2_promo" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_pricelist_code" ON "public"."Luv2_promo" USING btree (
  "pricelist_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_tipe" ON "public"."Luv2_promo" USING btree (
  "tipe" "pg_catalog"."int2_ops" ASC NULLS LAST
);
CREATE INDEX "promo_to_date" ON "public"."Luv2_promo" USING btree (
  "to_date" "pg_catalog"."date_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_promo
-- ----------------------------
ALTER TABLE "public"."Luv2_promo" ADD CONSTRAINT "Luv2_promo_pkey" PRIMARY KEY ("company_code", "no");

-- ----------------------------
-- Indexes structure for table Luv2_promo_bundling_qty
-- ----------------------------
CREATE INDEX "promo_bundling_qty_company_code" ON "public"."Luv2_promo_bundling_qty" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_bundling_qty_no" ON "public"."Luv2_promo_bundling_qty" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_bundling_qty_qty" ON "public"."Luv2_promo_bundling_qty" USING btree (
  "qty" "pg_catalog"."int2_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_promo_bundling_qty
-- ----------------------------
ALTER TABLE "public"."Luv2_promo_bundling_qty" ADD CONSTRAINT "Luv2_promo_bundling_qty_pkey" PRIMARY KEY ("company_code", "no", "qty");

-- ----------------------------
-- Indexes structure for table Luv2_promo_bundling_qty_temp
-- ----------------------------
CREATE INDEX "promo_bundling_qty_temp_id_company" ON "public"."Luv2_promo_bundling_qty_temp" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_bundling_qty_temp_id_user" ON "public"."Luv2_promo_bundling_qty_temp" USING btree (
  "id_user" "pg_catalog"."int4_ops" ASC NULLS LAST
);
CREATE INDEX "promo_bundling_qty_temp_qty" ON "public"."Luv2_promo_bundling_qty_temp" USING btree (
  "qty" "pg_catalog"."int2_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_promo_bundling_qty_temp
-- ----------------------------
ALTER TABLE "public"."Luv2_promo_bundling_qty_temp" ADD CONSTRAINT "Luv2_promo_bundling_qty_copy1_pkey" PRIMARY KEY ("company_code", "qty", "id_user");

-- ----------------------------
-- Indexes structure for table Luv2_promo_item
-- ----------------------------
CREATE INDEX "promo_item_company_code" ON "public"."Luv2_promo_item" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_item_code" ON "public"."Luv2_promo_item" USING btree (
  "item_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_no" ON "public"."Luv2_promo_item" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_pack" ON "public"."Luv2_promo_item" USING btree (
  "pack" "pg_catalog"."int2_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_promo_item
-- ----------------------------
ALTER TABLE "public"."Luv2_promo_item" ADD CONSTRAINT "Luv2_promo_item_pkey" PRIMARY KEY ("company_code", "no", "item_code", "pack");

-- ----------------------------
-- Indexes structure for table Luv2_promo_item_gwp
-- ----------------------------
CREATE INDEX "promo_item_gwp_item_barcode" ON "public"."Luv2_promo_item_gwp" USING btree (
  "item_barcode" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_gwp_item_code" ON "public"."Luv2_promo_item_gwp" USING btree (
  "item_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_gwp_item_name" ON "public"."Luv2_promo_item_gwp" USING btree (
  "item_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_gwp_no" ON "public"."Luv2_promo_item_gwp" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_gwp_ompany_code" ON "public"."Luv2_promo_item_gwp" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_promo_item_gwp
-- ----------------------------
ALTER TABLE "public"."Luv2_promo_item_gwp" ADD CONSTRAINT "Luv2_promo_item_gwp_pkey" PRIMARY KEY ("company_code", "no", "item_code", "tipe");

-- ----------------------------
-- Indexes structure for table Luv2_promo_item_gwp_temp
-- ----------------------------
CREATE INDEX "promo_item_gwp_temp_id_company" ON "public"."Luv2_promo_item_gwp_temp" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_gwp_temp_id_user" ON "public"."Luv2_promo_item_gwp_temp" USING btree (
  "id_user" "pg_catalog"."int4_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_gwp_temp_item_barcode" ON "public"."Luv2_promo_item_gwp_temp" USING btree (
  "item_barcode" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_gwp_temp_item_code" ON "public"."Luv2_promo_item_gwp_temp" USING btree (
  "item_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_gwp_temp_item_name" ON "public"."Luv2_promo_item_gwp_temp" USING btree (
  "item_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_gwp_temp_tipe" ON "public"."Luv2_promo_item_gwp_temp" USING btree (
  "tipe" "pg_catalog"."int2_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_promo_item_gwp_temp
-- ----------------------------
ALTER TABLE "public"."Luv2_promo_item_gwp_temp" ADD CONSTRAINT "Luv2_promo_item_gwp_temp_pkey" PRIMARY KEY ("company_code", "id_user", "item_code", "tipe");

-- ----------------------------
-- Indexes structure for table Luv2_promo_item_qty
-- ----------------------------
CREATE INDEX "promo_item_qty_company_code" ON "public"."Luv2_promo_item_qty" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."varchar_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_qty_item_code" ON "public"."Luv2_promo_item_qty" USING btree (
  "item_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_qty_no" ON "public"."Luv2_promo_item_qty" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_promo_item_qty
-- ----------------------------
ALTER TABLE "public"."Luv2_promo_item_qty" ADD CONSTRAINT "Luv2_promo_item_qty_pkey" PRIMARY KEY ("company_code", "no", "item_code", "qty");

-- ----------------------------
-- Indexes structure for table Luv2_promo_item_qty_temp
-- ----------------------------
CREATE INDEX "promo_item_qty_temp_id_company" ON "public"."Luv2_promo_item_qty_temp" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_qty_temp_id_user" ON "public"."Luv2_promo_item_qty_temp" USING btree (
  "id_user" "pg_catalog"."int4_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_qty_temp_item_code" ON "public"."Luv2_promo_item_qty_temp" USING btree (
  "item_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_qty_temp_qty" ON "public"."Luv2_promo_item_qty_temp" USING btree (
  "qty" "pg_catalog"."numeric_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_qty_temp_tipe" ON "public"."Luv2_promo_item_qty_temp" USING btree (
  "tipe" "pg_catalog"."int2_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_promo_item_qty_temp
-- ----------------------------
ALTER TABLE "public"."Luv2_promo_item_qty_temp" ADD CONSTRAINT "Luv2_promo_item_qty_copy1_pkey" PRIMARY KEY ("tipe", "company_code", "item_code", "qty", "id_user");

-- ----------------------------
-- Indexes structure for table Luv2_promo_item_temp
-- ----------------------------
CREATE INDEX "promo_item_temp_id_company" ON "public"."Luv2_promo_item_temp" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_temp_id_user" ON "public"."Luv2_promo_item_temp" USING btree (
  "id_user" "pg_catalog"."int4_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_temp_item_barcode" ON "public"."Luv2_promo_item_temp" USING btree (
  "item_barcode" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_temp_item_code" ON "public"."Luv2_promo_item_temp" USING btree (
  "item_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_temp_item_name" ON "public"."Luv2_promo_item_temp" USING btree (
  "item_name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_temp_pack" ON "public"."Luv2_promo_item_temp" USING btree (
  "pack" "pg_catalog"."int2_ops" ASC NULLS LAST
);
CREATE INDEX "promo_item_temp_tipe" ON "public"."Luv2_promo_item_temp" USING btree (
  "tipe" "pg_catalog"."int2_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_promo_item_temp
-- ----------------------------
ALTER TABLE "public"."Luv2_promo_item_temp" ADD CONSTRAINT "Luv2_promo_item_temp_pkey" PRIMARY KEY ("company_code", "item_code", "pack", "tipe", "id_user");

-- ----------------------------
-- Indexes structure for table Luv2_promo_voucher
-- ----------------------------
CREATE INDEX "promo_voucher_company_code" ON "public"."Luv2_promo_voucher" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."varchar_ops" ASC NULLS LAST
);
CREATE INDEX "promo_voucher_no" ON "public"."Luv2_promo_voucher" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_voucher_value" ON "public"."Luv2_promo_voucher" USING btree (
  "value" "pg_catalog"."numeric_ops" ASC NULLS LAST
);
CREATE INDEX "promo_voucher_voucher" ON "public"."Luv2_promo_voucher" USING btree (
  "voucher" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_promo_voucher
-- ----------------------------
ALTER TABLE "public"."Luv2_promo_voucher" ADD CONSTRAINT "Luv2_promo_voucher_pkey" PRIMARY KEY ("company_code", "no", "voucher");

-- ----------------------------
-- Indexes structure for table Luv2_promo_voucher_temp
-- ----------------------------
CREATE INDEX "promo_voucher_temp_id_company" ON "public"."Luv2_promo_voucher_temp" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_voucher_temp_id_user" ON "public"."Luv2_promo_voucher_temp" USING btree (
  "id_user" "pg_catalog"."int4_ops" ASC NULLS LAST
);
CREATE INDEX "promo_voucher_temp_value" ON "public"."Luv2_promo_voucher_temp" USING btree (
  "value" "pg_catalog"."numeric_ops" ASC NULLS LAST
);
CREATE INDEX "promo_voucher_temp_voucher" ON "public"."Luv2_promo_voucher_temp" USING btree (
  "voucher" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_promo_voucher_temp
-- ----------------------------
ALTER TABLE "public"."Luv2_promo_voucher_temp" ADD CONSTRAINT "Luv2_promo_voucher_copy1_pkey" PRIMARY KEY ("company_code", "id_user", "voucher");

-- ----------------------------
-- Indexes structure for table Luv2_promo_whs
-- ----------------------------
CREATE INDEX "promo_whs_id_company" ON "public"."Luv2_promo_whs" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_whs_no" ON "public"."Luv2_promo_whs" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "promo_whs_whs_code" ON "public"."Luv2_promo_whs" USING btree (
  "whs_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Indexes structure for table Luv2_receipt
-- ----------------------------
CREATE INDEX "purchase_company_code" ON "public"."Luv2_receipt" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "purchase_date" ON "public"."Luv2_receipt" USING btree (
  "date" "pg_catalog"."date_ops" ASC NULLS LAST
);
CREATE INDEX "purchase_no" ON "public"."Luv2_receipt" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "purchase_supp_code" ON "public"."Luv2_receipt" USING btree (
  "supp_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "purchase_user_code" ON "public"."Luv2_receipt" USING btree (
  "user_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "purchase_whs_code" ON "public"."Luv2_receipt" USING btree (
  "whs_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Triggers structure for table Luv2_receipt
-- ----------------------------
CREATE TRIGGER "trig_receipt_delete" AFTER DELETE ON "public"."Luv2_receipt"
FOR EACH ROW
EXECUTE PROCEDURE "public"."trig_receipt_delete"();
CREATE TRIGGER "trig_receipt_update" AFTER UPDATE ON "public"."Luv2_receipt"
FOR EACH ROW
EXECUTE PROCEDURE "public"."trig_receipt_update"();

-- ----------------------------
-- Primary Key structure for table Luv2_receipt
-- ----------------------------
ALTER TABLE "public"."Luv2_receipt" ADD CONSTRAINT "Luv2_purchase_pkey" PRIMARY KEY ("company_code", "no", "whs_code");

-- ----------------------------
-- Indexes structure for table Luv2_receipt_detail
-- ----------------------------
CREATE INDEX "purchase_detail_company_code" ON "public"."Luv2_receipt_detail" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "purchase_detail_item_code" ON "public"."Luv2_receipt_detail" USING btree (
  "item_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "purchase_detail_no" ON "public"."Luv2_receipt_detail" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Triggers structure for table Luv2_receipt_detail
-- ----------------------------
CREATE TRIGGER "trig_receipt_detail_delete" AFTER DELETE ON "public"."Luv2_receipt_detail"
FOR EACH ROW
EXECUTE PROCEDURE "public"."trig_receipt_detail_delete"();
CREATE TRIGGER "trig_receipt_detail_insert" AFTER INSERT ON "public"."Luv2_receipt_detail"
FOR EACH ROW
EXECUTE PROCEDURE "public"."trig_receipt_detail_insert"();

-- ----------------------------
-- Primary Key structure for table Luv2_receipt_detail
-- ----------------------------
ALTER TABLE "public"."Luv2_receipt_detail" ADD CONSTRAINT "Luv2_purchase_detail_pkey" PRIMARY KEY ("company_code", "no", "item_code");

-- ----------------------------
-- Primary Key structure for table Luv2_renewal
-- ----------------------------
ALTER TABLE "public"."Luv2_renewal" ADD CONSTRAINT "luv2_renewal_pkey" PRIMARY KEY ("id");

-- ----------------------------
-- Indexes structure for table Luv2_return
-- ----------------------------
CREATE INDEX "return_company_code" ON "public"."Luv2_return" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "return_date" ON "public"."Luv2_return" USING btree (
  "date" "pg_catalog"."date_ops" ASC NULLS LAST
);
CREATE INDEX "return_no" ON "public"."Luv2_return" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "return_supp_code" ON "public"."Luv2_return" USING btree (
  "supp_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "return_user_code" ON "public"."Luv2_return" USING btree (
  "user_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "return_whs_code" ON "public"."Luv2_return" USING btree (
  "whs_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Triggers structure for table Luv2_return
-- ----------------------------
CREATE TRIGGER "trig_return_delete" AFTER DELETE ON "public"."Luv2_return"
FOR EACH ROW
EXECUTE PROCEDURE "public"."trig_return_delete"();
CREATE TRIGGER "trig_return_update" AFTER UPDATE ON "public"."Luv2_return"
FOR EACH ROW
EXECUTE PROCEDURE "public"."trig_return_update"();

-- ----------------------------
-- Primary Key structure for table Luv2_return
-- ----------------------------
ALTER TABLE "public"."Luv2_return" ADD CONSTRAINT "Luv2_purchase_copy1_pkey" PRIMARY KEY ("company_code", "no", "whs_code");

-- ----------------------------
-- Indexes structure for table Luv2_return_detail
-- ----------------------------
CREATE INDEX "return_detail_company_code" ON "public"."Luv2_return_detail" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "return_detail_item_code" ON "public"."Luv2_return_detail" USING btree (
  "item_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "return_detail_no" ON "public"."Luv2_return_detail" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Triggers structure for table Luv2_return_detail
-- ----------------------------
CREATE TRIGGER "trig_return_detail_delete" AFTER DELETE ON "public"."Luv2_return_detail"
FOR EACH ROW
EXECUTE PROCEDURE "public"."trig_return_detail_delete"();
CREATE TRIGGER "trig_return_detail_insert" AFTER INSERT ON "public"."Luv2_return_detail"
FOR EACH ROW
EXECUTE PROCEDURE "public"."trig_return_detail_insert"();

-- ----------------------------
-- Primary Key structure for table Luv2_return_detail
-- ----------------------------
ALTER TABLE "public"."Luv2_return_detail" ADD CONSTRAINT "Luv2_purchase_detail_copy1_pkey" PRIMARY KEY ("company_code", "no", "item_code");

-- ----------------------------
-- Indexes structure for table Luv2_salesemp
-- ----------------------------
CREATE INDEX "salesemp_code" ON "public"."Luv2_salesemp" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."varchar_ops" ASC NULLS LAST
);
CREATE INDEX "salesemp_company_code" ON "public"."Luv2_salesemp" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "salesemp_name" ON "public"."Luv2_salesemp" USING btree (
  "name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_salesemp
-- ----------------------------
ALTER TABLE "public"."Luv2_salesemp" ADD CONSTRAINT "Luv2_salesemp_pkey" PRIMARY KEY ("company_code", "code");

-- ----------------------------
-- Indexes structure for table Luv2_size
-- ----------------------------
CREATE INDEX "size_code" ON "public"."Luv2_size" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "size_company_code" ON "public"."Luv2_size" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "size_name" ON "public"."Luv2_size" USING btree (
  "name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_size
-- ----------------------------
ALTER TABLE "public"."Luv2_size" ADD CONSTRAINT "Luv2_brand_copy1_pkey1" PRIMARY KEY ("company_code", "unique_code");

-- ----------------------------
-- Indexes structure for table Luv2_size_temp
-- ----------------------------
CREATE INDEX "size_code_copy1" ON "public"."Luv2_size_temp" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "size_company_code_copy1" ON "public"."Luv2_size_temp" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "size_name_copy1" ON "public"."Luv2_size_temp" USING btree (
  "name" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_size_temp
-- ----------------------------
ALTER TABLE "public"."Luv2_size_temp" ADD CONSTRAINT "Luv2_size_copy1_pkey" PRIMARY KEY ("company_code", "code", "id_user");

-- ----------------------------
-- Indexes structure for table Luv2_supplier
-- ----------------------------
CREATE INDEX "supplier_code" ON "public"."Luv2_supplier" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "supplier_company_code" ON "public"."Luv2_supplier" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_supplier
-- ----------------------------
ALTER TABLE "public"."Luv2_supplier" ADD CONSTRAINT "Luv2_supplier_pkey" PRIMARY KEY ("company_code", "code");

-- ----------------------------
-- Indexes structure for table Luv2_supplier_temp
-- ----------------------------
CREATE INDEX "supplier_code_copy1" ON "public"."Luv2_supplier_temp" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "supplier_company_code_copy1" ON "public"."Luv2_supplier_temp" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_supplier_temp
-- ----------------------------
ALTER TABLE "public"."Luv2_supplier_temp" ADD CONSTRAINT "Luv2_supplier_copy1_pkey" PRIMARY KEY ("company_code", "code", "id_user");

-- ----------------------------
-- Indexes structure for table Luv2_transfer
-- ----------------------------
CREATE INDEX "transfer_company_code" ON "public"."Luv2_transfer" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "transfer_date" ON "public"."Luv2_transfer" USING btree (
  "date" "pg_catalog"."date_ops" ASC NULLS LAST
);
CREATE INDEX "transfer_user_code" ON "public"."Luv2_transfer" USING btree (
  "user_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "transfer_whs_code" ON "public"."Luv2_transfer" USING btree (
  "whs_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "transfer_whs_code_to" ON "public"."Luv2_transfer" USING btree (
  "whs_code_to" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Triggers structure for table Luv2_transfer
-- ----------------------------
CREATE TRIGGER "trig_transfer_update_closed" AFTER UPDATE ON "public"."Luv2_transfer"
FOR EACH ROW
EXECUTE PROCEDURE "public"."trig_transfer_update"();

-- ----------------------------
-- Primary Key structure for table Luv2_transfer
-- ----------------------------
ALTER TABLE "public"."Luv2_transfer" ADD CONSTRAINT "Luv2_transfer_pkey" PRIMARY KEY ("company_code", "no", "whs_code", "whs_code_to");

-- ----------------------------
-- Indexes structure for table Luv2_transfer_copy1
-- ----------------------------
CREATE INDEX "transfer_company_code_copy1" ON "public"."Luv2_transfer_copy1" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "transfer_date_copy1" ON "public"."Luv2_transfer_copy1" USING btree (
  "date" "pg_catalog"."date_ops" ASC NULLS LAST
);
CREATE INDEX "transfer_user_code_copy1" ON "public"."Luv2_transfer_copy1" USING btree (
  "user_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "transfer_whs_code_copy1" ON "public"."Luv2_transfer_copy1" USING btree (
  "whs_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "transfer_whs_code_to_copy1" ON "public"."Luv2_transfer_copy1" USING btree (
  "whs_code_to" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_transfer_copy1
-- ----------------------------
ALTER TABLE "public"."Luv2_transfer_copy1" ADD CONSTRAINT "Luv2_transfer_copy1_pkey" PRIMARY KEY ("company_code", "no", "whs_code", "whs_code_to");

-- ----------------------------
-- Indexes structure for table Luv2_transfer_detail
-- ----------------------------
CREATE INDEX "transfer_detail_company_code" ON "public"."Luv2_transfer_detail" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "transfer_detail_item_code" ON "public"."Luv2_transfer_detail" USING btree (
  "item_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "transfer_detail_no" ON "public"."Luv2_transfer_detail" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_transfer_detail
-- ----------------------------
ALTER TABLE "public"."Luv2_transfer_detail" ADD CONSTRAINT "Luv2_transfer_detail_pkey" PRIMARY KEY ("company_code", "no", "item_code");

-- ----------------------------
-- Indexes structure for table Luv2_transfer_detail_copy1
-- ----------------------------
CREATE INDEX "transfer_detail_company_code_copy1" ON "public"."Luv2_transfer_detail_copy1" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "transfer_detail_item_code_copy1" ON "public"."Luv2_transfer_detail_copy1" USING btree (
  "item_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "transfer_detail_no_copy1" ON "public"."Luv2_transfer_detail_copy1" USING btree (
  "no" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_transfer_detail_copy1
-- ----------------------------
ALTER TABLE "public"."Luv2_transfer_detail_copy1" ADD CONSTRAINT "Luv2_transfer_detail_copy1_pkey" PRIMARY KEY ("company_code", "no", "item_code");

-- ----------------------------
-- Auto increment value for Luv2_tutorial
-- ----------------------------
SELECT setval('"public"."Luv2_tutorial_id_seq"', 158, true);

-- ----------------------------
-- Primary Key structure for table Luv2_tutorial
-- ----------------------------
ALTER TABLE "public"."Luv2_tutorial" ADD CONSTRAINT "Luv2_tutorial_pkey" PRIMARY KEY ("id", "id_user");

-- ----------------------------
-- Primary Key structure for table Luv2_unit
-- ----------------------------
ALTER TABLE "public"."Luv2_unit" ADD CONSTRAINT "Luv2_unit_pkey" PRIMARY KEY ("company_code", "id");

-- ----------------------------
-- Indexes structure for table Luv2_user
-- ----------------------------
CREATE INDEX "user_code" ON "public"."Luv2_user" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "user_company_code" ON "public"."Luv2_user" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "user_username" ON "public"."Luv2_user" USING btree (
  "username" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "user_whs_code" ON "public"."Luv2_user" USING btree (
  "whs_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_user
-- ----------------------------
ALTER TABLE "public"."Luv2_user" ADD CONSTRAINT "Luv2_user_pkey" PRIMARY KEY ("company_code", "whs_code", "code");

-- ----------------------------
-- Indexes structure for table Luv2_user_auth
-- ----------------------------
CREATE INDEX "user_auth_auth_code" ON "public"."Luv2_user_auth" USING btree (
  "auth_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "user_auth_company_code" ON "public"."Luv2_user_auth" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "user_auth_user_code" ON "public"."Luv2_user_auth" USING btree (
  "user_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_user_auth
-- ----------------------------
ALTER TABLE "public"."Luv2_user_auth" ADD CONSTRAINT "Luv2_user_auth_pkey" PRIMARY KEY ("company_code", "user_code", "auth_code");

-- ----------------------------
-- Indexes structure for table Luv2_user_group
-- ----------------------------
CREATE INDEX "user_group_auth" ON "public"."Luv2_user_group" USING btree (
  "auth" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "user_group_auth_code" ON "public"."Luv2_user_group" USING btree (
  "auth_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "user_group_code" ON "public"."Luv2_user_group" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "user_group_company_code" ON "public"."Luv2_user_group" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_user_group
-- ----------------------------
ALTER TABLE "public"."Luv2_user_group" ADD CONSTRAINT "Luv2_user_group_pkey" PRIMARY KEY ("company_code", "code");

-- ----------------------------
-- Indexes structure for table Luv2_warehouse
-- ----------------------------
CREATE INDEX "whs_code" ON "public"."Luv2_warehouse" USING btree (
  "code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "whs_company_code" ON "public"."Luv2_warehouse" USING btree (
  "company_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
CREATE INDEX "whs_pricelist_code" ON "public"."Luv2_warehouse" USING btree (
  "pricelist_code" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);

-- ----------------------------
-- Primary Key structure for table Luv2_warehouse
-- ----------------------------
ALTER TABLE "public"."Luv2_warehouse" ADD CONSTRAINT "Luv2_warehouse_pkey" PRIMARY KEY ("company_code", "pricelist_code", "code");

-- ----------------------------
-- Primary Key structure for table password_reset_tokens
-- ----------------------------
ALTER TABLE "public"."password_reset_tokens" ADD CONSTRAINT "password_reset_tokens_pkey" PRIMARY KEY ("email");

-- ----------------------------
-- Indexes structure for table password_resets
-- ----------------------------
CREATE INDEX "password_resets_email_index" ON "public"."password_resets" USING btree (
  "email" COLLATE "pg_catalog"."default" "pg_catalog"."text_ops" ASC NULLS LAST
);
