This commit is contained in:
oneao committed 2026-02-24 22:25:24 +08:00
1 parent 19b160620f
commit 835958886e
47 files changed
+9573

No files matched your search

@@ -0,0 +1,124 @@
CREATE TABLE "finance_category_default" (
"id" bigint PRIMARY KEY NOT NULL,
"name" varchar(64) NOT NULL,
"icon" varchar(64) NOT NULL,
"type" smallint DEFAULT 0 NOT NULL,
"sort_number" integer DEFAULT 0 NOT NULL,
"create_time" timestamp with time zone DEFAULT now(),
"update_time" timestamp with time zone DEFAULT now()
);
--> statement-breakpoint
CREATE TABLE "finance_category_space" (
"id" bigint PRIMARY KEY NOT NULL,
"space_id" bigint NOT NULL,
"name" varchar(64) NOT NULL,
"icon" varchar(64) NOT NULL,
"type" smallint DEFAULT 0 NOT NULL,
"sort_number" integer DEFAULT 0 NOT NULL,
"create_by" bigint NOT NULL,
"create_time" timestamp with time zone DEFAULT now(),
"update_by" bigint NOT NULL,
"update_time" timestamp with time zone DEFAULT now()
);
--> statement-breakpoint
CREATE TABLE "finance_record" (
"id" bigint PRIMARY KEY NOT NULL,
"category_id" bigint NOT NULL,
"space_id" bigint NOT NULL,
"amount" numeric(12, 2) NOT NULL,
"remark" varchar(255),
"record_time" date,
"create_by" bigint NOT NULL,
"create_time" timestamp with time zone DEFAULT now(),
"update_by" bigint NOT NULL,
"update_time" timestamp with time zone DEFAULT now()
);
--> statement-breakpoint
CREATE TABLE "session" (
"id" bigint PRIMARY KEY NOT NULL,
"space_id" bigint NOT NULL,
"type" smallint DEFAULT 0 NOT NULL,
"name" varchar(64),
"avatar" varchar(255),
"description" text,
"status" smallint DEFAULT 0 NOT NULL,
"create_time" timestamp with time zone DEFAULT now(),
"update_time" timestamp with time zone DEFAULT now()
);
--> statement-breakpoint
CREATE TABLE "session_member" (
"id" bigint PRIMARY KEY NOT NULL,
"session_id" bigint NOT NULL,
"user_id" bigint NOT NULL,
"remark" varchar(255),
"is_top" smallint DEFAULT 0 NOT NULL,
"unread_count" integer DEFAULT 0,
"last_msg_id" bigint,
"status" integer DEFAULT 0,
"create_time" timestamp with time zone DEFAULT now(),
"update_time" timestamp with time zone DEFAULT now()
);
--> statement-breakpoint
CREATE TABLE "session_message" (
"id" bigint PRIMARY KEY NOT NULL,
"session_id" bigint NOT NULL,
"sender_id" bigint NOT NULL,
"content" text NOT NULL,
"content_type" smallint DEFAULT 0 NOT NULL,
"create_time" timestamp with time zone DEFAULT now()
);
--> statement-breakpoint
CREATE TABLE "space" (
"id" bigint PRIMARY KEY NOT NULL,
"name" varchar(255) NOT NULL,
"invite_code" varchar(30) NOT NULL,
"owner_id" bigint NOT NULL,
"create_time" timestamp with time zone DEFAULT now(),
"update_time" timestamp with time zone DEFAULT now()
);
--> statement-breakpoint
CREATE TABLE "space_member" (
"id" bigint PRIMARY KEY NOT NULL,
"space_id" bigint NOT NULL,
"user_id" bigint NOT NULL,
"role" smallint DEFAULT 2 NOT NULL,
"join_time" timestamp with time zone DEFAULT now(),
"update_time" timestamp with time zone DEFAULT now()
);
--> statement-breakpoint
CREATE TABLE "user" (
"id" bigint PRIMARY KEY NOT NULL,
"nickname" varchar(255),
"avatar" varchar(255),
"status" smallint DEFAULT 0 NOT NULL,
"last_login_time" timestamp with time zone,
"create_time" timestamp with time zone DEFAULT now(),
"update_time" timestamp with time zone DEFAULT now()
);
--> statement-breakpoint
CREATE TABLE "user_oauth" (
"id" bigint PRIMARY KEY NOT NULL,
"user_id" bigint NOT NULL,
"type" smallint DEFAULT 0 NOT NULL,
"openid" varchar(255) NOT NULL,
"create_time" timestamp with time zone DEFAULT now(),
"update_time" timestamp with time zone DEFAULT now()
);
--> statement-breakpoint
ALTER TABLE "finance_category_space" ADD CONSTRAINT "finance_category_space_space_id_space_id_fk" FOREIGN KEY ("space_id") REFERENCES "public"."space"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "finance_category_space" ADD CONSTRAINT "finance_category_space_create_by_user_id_fk" FOREIGN KEY ("create_by") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "finance_category_space" ADD CONSTRAINT "finance_category_space_update_by_user_id_fk" FOREIGN KEY ("update_by") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "finance_record" ADD CONSTRAINT "finance_record_category_id_finance_category_space_id_fk" FOREIGN KEY ("category_id") REFERENCES "public"."finance_category_space"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "finance_record" ADD CONSTRAINT "finance_record_space_id_space_id_fk" FOREIGN KEY ("space_id") REFERENCES "public"."space"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "finance_record" ADD CONSTRAINT "finance_record_create_by_user_id_fk" FOREIGN KEY ("create_by") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "finance_record" ADD CONSTRAINT "finance_record_update_by_user_id_fk" FOREIGN KEY ("update_by") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "session" ADD CONSTRAINT "session_space_id_space_id_fk" FOREIGN KEY ("space_id") REFERENCES "public"."space"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "session_member" ADD CONSTRAINT "session_member_session_id_session_id_fk" FOREIGN KEY ("session_id") REFERENCES "public"."session"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "session_member" ADD CONSTRAINT "session_member_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "session_member" ADD CONSTRAINT "session_member_last_msg_id_session_message_id_fk" FOREIGN KEY ("last_msg_id") REFERENCES "public"."session_message"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "session_message" ADD CONSTRAINT "session_message_session_id_session_id_fk" FOREIGN KEY ("session_id") REFERENCES "public"."session"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "session_message" ADD CONSTRAINT "session_message_sender_id_user_id_fk" FOREIGN KEY ("sender_id") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "space" ADD CONSTRAINT "space_owner_id_user_id_fk" FOREIGN KEY ("owner_id") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "space_member" ADD CONSTRAINT "space_member_space_id_space_id_fk" FOREIGN KEY ("space_id") REFERENCES "public"."space"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "space_member" ADD CONSTRAINT "space_member_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "user_oauth" ADD CONSTRAINT "user_oauth_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;
@@ -0,0 +1,872 @@
{
"id": "95ee35f9-43d8-4df6-b2ff-f598eaf78113",
"prevId": "00000000-0000-0000-0000-000000000000",
"version": "7",
"dialect": "postgresql",
"tables": {
"public.finance_category_default": {
"name": "finance_category_default",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigint",
"primaryKey": true,
"notNull": true
},
"name": {
"name": "name",
"type": "varchar(64)",
"primaryKey": false,
"notNull": true
},
"icon": {
"name": "icon",
"type": "varchar(64)",
"primaryKey": false,
"notNull": true
},
"type": {
"name": "type",
"type": "smallint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"sort_number": {
"name": "sort_number",
"type": "integer",
"primaryKey": false,
"notNull": true,
"default": 0
},
"create_time": {
"name": "create_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"update_time": {
"name": "update_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.finance_category_space": {
"name": "finance_category_space",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigint",
"primaryKey": true,
"notNull": true
},
"space_id": {
"name": "space_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"name": {
"name": "name",
"type": "varchar(64)",
"primaryKey": false,
"notNull": true
},
"icon": {
"name": "icon",
"type": "varchar(64)",
"primaryKey": false,
"notNull": true
},
"type": {
"name": "type",
"type": "smallint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"sort_number": {
"name": "sort_number",
"type": "integer",
"primaryKey": false,
"notNull": true,
"default": 0
},
"create_by": {
"name": "create_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"create_time": {
"name": "create_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"update_by": {
"name": "update_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"update_time": {
"name": "update_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {
"finance_category_space_space_id_space_id_fk": {
"name": "finance_category_space_space_id_space_id_fk",
"tableFrom": "finance_category_space",
"tableTo": "space",
"columnsFrom": [
"space_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"finance_category_space_create_by_user_id_fk": {
"name": "finance_category_space_create_by_user_id_fk",
"tableFrom": "finance_category_space",
"tableTo": "user",
"columnsFrom": [
"create_by"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"finance_category_space_update_by_user_id_fk": {
"name": "finance_category_space_update_by_user_id_fk",
"tableFrom": "finance_category_space",
"tableTo": "user",
"columnsFrom": [
"update_by"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.finance_record": {
"name": "finance_record",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigint",
"primaryKey": true,
"notNull": true
},
"category_id": {
"name": "category_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"space_id": {
"name": "space_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"amount": {
"name": "amount",
"type": "numeric(12, 2)",
"primaryKey": false,
"notNull": true
},
"remark": {
"name": "remark",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"record_time": {
"name": "record_time",
"type": "date",
"primaryKey": false,
"notNull": false
},
"create_by": {
"name": "create_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"create_time": {
"name": "create_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"update_by": {
"name": "update_by",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"update_time": {
"name": "update_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {
"finance_record_category_id_finance_category_space_id_fk": {
"name": "finance_record_category_id_finance_category_space_id_fk",
"tableFrom": "finance_record",
"tableTo": "finance_category_space",
"columnsFrom": [
"category_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"finance_record_space_id_space_id_fk": {
"name": "finance_record_space_id_space_id_fk",
"tableFrom": "finance_record",
"tableTo": "space",
"columnsFrom": [
"space_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"finance_record_create_by_user_id_fk": {
"name": "finance_record_create_by_user_id_fk",
"tableFrom": "finance_record",
"tableTo": "user",
"columnsFrom": [
"create_by"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"finance_record_update_by_user_id_fk": {
"name": "finance_record_update_by_user_id_fk",
"tableFrom": "finance_record",
"tableTo": "user",
"columnsFrom": [
"update_by"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.session": {
"name": "session",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigint",
"primaryKey": true,
"notNull": true
},
"space_id": {
"name": "space_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"type": {
"name": "type",
"type": "smallint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"name": {
"name": "name",
"type": "varchar(64)",
"primaryKey": false,
"notNull": false
},
"avatar": {
"name": "avatar",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"description": {
"name": "description",
"type": "text",
"primaryKey": false,
"notNull": false
},
"status": {
"name": "status",
"type": "smallint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"create_time": {
"name": "create_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"update_time": {
"name": "update_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {
"session_space_id_space_id_fk": {
"name": "session_space_id_space_id_fk",
"tableFrom": "session",
"tableTo": "space",
"columnsFrom": [
"space_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.session_member": {
"name": "session_member",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigint",
"primaryKey": true,
"notNull": true
},
"session_id": {
"name": "session_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"user_id": {
"name": "user_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"remark": {
"name": "remark",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"is_top": {
"name": "is_top",
"type": "smallint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"unread_count": {
"name": "unread_count",
"type": "integer",
"primaryKey": false,
"notNull": false,
"default": 0
},
"last_msg_id": {
"name": "last_msg_id",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"status": {
"name": "status",
"type": "integer",
"primaryKey": false,
"notNull": false,
"default": 0
},
"create_time": {
"name": "create_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"update_time": {
"name": "update_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {
"session_member_session_id_session_id_fk": {
"name": "session_member_session_id_session_id_fk",
"tableFrom": "session_member",
"tableTo": "session",
"columnsFrom": [
"session_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"session_member_user_id_user_id_fk": {
"name": "session_member_user_id_user_id_fk",
"tableFrom": "session_member",
"tableTo": "user",
"columnsFrom": [
"user_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"session_member_last_msg_id_session_message_id_fk": {
"name": "session_member_last_msg_id_session_message_id_fk",
"tableFrom": "session_member",
"tableTo": "session_message",
"columnsFrom": [
"last_msg_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.session_message": {
"name": "session_message",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigint",
"primaryKey": true,
"notNull": true
},
"session_id": {
"name": "session_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"sender_id": {
"name": "sender_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"content": {
"name": "content",
"type": "text",
"primaryKey": false,
"notNull": true
},
"content_type": {
"name": "content_type",
"type": "smallint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"create_time": {
"name": "create_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {
"session_message_session_id_session_id_fk": {
"name": "session_message_session_id_session_id_fk",
"tableFrom": "session_message",
"tableTo": "session",
"columnsFrom": [
"session_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"session_message_sender_id_user_id_fk": {
"name": "session_message_sender_id_user_id_fk",
"tableFrom": "session_message",
"tableTo": "user",
"columnsFrom": [
"sender_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.space": {
"name": "space",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigint",
"primaryKey": true,
"notNull": true
},
"name": {
"name": "name",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"invite_code": {
"name": "invite_code",
"type": "varchar(30)",
"primaryKey": false,
"notNull": true
},
"owner_id": {
"name": "owner_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"create_time": {
"name": "create_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"update_time": {
"name": "update_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {
"space_owner_id_user_id_fk": {
"name": "space_owner_id_user_id_fk",
"tableFrom": "space",
"tableTo": "user",
"columnsFrom": [
"owner_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.space_member": {
"name": "space_member",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigint",
"primaryKey": true,
"notNull": true
},
"space_id": {
"name": "space_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"user_id": {
"name": "user_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"role": {
"name": "role",
"type": "smallint",
"primaryKey": false,
"notNull": true,
"default": 2
},
"join_time": {
"name": "join_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"update_time": {
"name": "update_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {
"space_member_space_id_space_id_fk": {
"name": "space_member_space_id_space_id_fk",
"tableFrom": "space_member",
"tableTo": "space",
"columnsFrom": [
"space_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"space_member_user_id_user_id_fk": {
"name": "space_member_user_id_user_id_fk",
"tableFrom": "space_member",
"tableTo": "user",
"columnsFrom": [
"user_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.user": {
"name": "user",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigint",
"primaryKey": true,
"notNull": true
},
"nickname": {
"name": "nickname",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"avatar": {
"name": "avatar",
"type": "varchar(255)",
"primaryKey": false,
"notNull": false
},
"status": {
"name": "status",
"type": "smallint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"last_login_time": {
"name": "last_login_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"create_time": {
"name": "create_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"update_time": {
"name": "update_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.user_oauth": {
"name": "user_oauth",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "bigint",
"primaryKey": true,
"notNull": true
},
"user_id": {
"name": "user_id",
"type": "bigint",
"primaryKey": false,
"notNull": true
},
"type": {
"name": "type",
"type": "smallint",
"primaryKey": false,
"notNull": true,
"default": 0
},
"openid": {
"name": "openid",
"type": "varchar(255)",
"primaryKey": false,
"notNull": true
},
"create_time": {
"name": "create_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"update_time": {
"name": "update_time",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {
"user_oauth_user_id_user_id_fk": {
"name": "user_oauth_user_id_user_id_fk",
"tableFrom": "user_oauth",
"tableTo": "user",
"columnsFrom": [
"user_id"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
}
},
"enums": {},
"schemas": {},
"sequences": {},
"roles": {},
"policies": {},
"views": {},
"_meta": {
"columns": {},
"schemas": {},
"tables": {}
}
}
@@ -0,0 +1,13 @@
{
"version": "7",
"dialect": "postgresql",
"entries": [
{
"idx": 0,
"version": "7",
"when": 1771934733209,
"tag": "0000_omniscient_nightcrawler",
"breakpoints": true
}
]
}