/*
 Navicat Premium Dump SQL

 Source Server         : 智能控制平台
 Source Server Type    : PostgreSQL
 Source Server Version : 150013 (150013)
 Source Host           : 10.10.10.9:5432
 Source Catalog        : ktor2
 Source Schema         : public

 Target Server Type    : PostgreSQL
 Target Server Version : 150013 (150013)
 File Encoding         : 65001

 Date: 22/08/2025 10:12:57
*/


-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS "public"."users";
CREATE TABLE "public"."users" (
  "id" uuid NOT NULL,
  "username" varchar(50) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
  "email" varchar(32) COLLATE "pg_catalog"."default",
  "phone" varchar(32) COLLATE "pg_catalog"."default",
  "password_hash" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
  "is_active" bool NOT NULL DEFAULT true,
  "created_at" timestamp(6),
  "updated_at" timestamp(6),
  "roles" text COLLATE "pg_catalog"."default" NOT NULL DEFAULT '{}'::text
)
;

-- ----------------------------
-- Records of users
-- ----------------------------
INSERT INTO "public"."users" VALUES ('bb647657-1dd3-cdca-580f-3ad351605b66', '范总', 'fanhongcai', NULL, '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92', 't', '2025-05-12 08:58:05', NULL, '{remote,iva,sca}');
INSERT INTO "public"."users" VALUES ('dc19faee-06ba-6507-d9fe-5835d6a74e2b', '管理员', 'bbit', NULL, '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92', 't', '2024-12-09 21:53:25', '2024-12-09 21:53:25', '{remote,iva,ysa,sca}');
INSERT INTO "public"."users" VALUES ('c723a73d-29c6-b79a-cd73-bd38890f7fd1', '段工', 'd', NULL, '18ac3e7343f016890c510e93f935261169d9e3f565436429830faf0934f4f8e4', 't', NULL, NULL, '{remote,iva,ysa,sca}');
INSERT INTO "public"."users" VALUES ('5d8b3d11-d495-5219-c752-d9087ca37d5f', '张工', 'zhangjian', NULL, '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92', 't', '2025-05-17 09:38:35', NULL, '{remote}');
INSERT INTO "public"."users" VALUES ('f4564c52-ede2-fa5d-298f-bd630666f940', '何工', 'heqixu', NULL, '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92', 't', '2025-05-13 16:41:32', NULL, '{remote}');
INSERT INTO "public"."users" VALUES ('63a884a1-3488-3a0b-4fc3-e9b6068afa44', '秦工', 'qinlang', NULL, '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92', 't', '2025-05-13 16:41:36', NULL, '{remote}');

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