From 9a48cc1dee0eafa8776e254844914b40c136bbb8 Mon Sep 17 00:00:00 2001 From: tone Date: Fri, 9 Jan 2026 10:02:55 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=BF=AB=E7=85=A7=E5=BF=98=E4=BA=86..?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../drizzle/meta/0005_snapshot.json | 215 ++++++++++++++++++ .../drizzle/meta/0006_snapshot.json | 215 ++++++++++++++++++ 2 files changed, 430 insertions(+) create mode 100644 tonesc-red-packet/drizzle/meta/0005_snapshot.json create mode 100644 tonesc-red-packet/drizzle/meta/0006_snapshot.json diff --git a/tonesc-red-packet/drizzle/meta/0005_snapshot.json b/tonesc-red-packet/drizzle/meta/0005_snapshot.json new file mode 100644 index 0000000..bb80df1 --- /dev/null +++ b/tonesc-red-packet/drizzle/meta/0005_snapshot.json @@ -0,0 +1,215 @@ +{ + "id": "d833ecb6-de56-4777-8907-a8d8d7737a24", + "prevId": "11a8b31d-ae2f-40d8-81fc-8a6b3bdcdd48", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.red_packet_draws": { + "name": "red_packet_draws", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "red_packet_id": { + "name": "red_packet_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "amount": { + "name": "amount", + "type": "numeric(38, 8)", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "idx_red_packet_draws_packet_id_created_at": { + "name": "idx_red_packet_draws_packet_id_created_at", + "columns": [ + { + "expression": "red_packet_id", + "isExpression": false, + "asc": true, + "nulls": "last" + }, + { + "expression": "\"created_at\" desc", + "asc": true, + "isExpression": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.red_packets": { + "name": "red_packets", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "public_id": { + "name": "public_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "admin_id": { + "name": "admin_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "count": { + "name": "count", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "currency_name": { + "name": "currency_name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "currency_precision": { + "name": "currency_precision", + "type": "numeric(20, 10)", + "primaryKey": false, + "notNull": true + }, + "rule": { + "name": "rule", + "type": "jsonb", + "primaryKey": false, + "notNull": true + }, + "max_draw_times": { + "name": "max_draw_times", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "uniq_red_packets_public_id": { + "name": "uniq_red_packets_public_id", + "columns": [ + { + "expression": "public_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": true, + "concurrently": false, + "method": "btree", + "with": {} + }, + "uniq_red_packets_admin_id": { + "name": "uniq_red_packets_admin_id", + "columns": [ + { + "expression": "admin_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": true, + "concurrently": false, + "method": "btree", + "with": {} + }, + "idx_red_packets_public_id": { + "name": "idx_red_packets_public_id", + "columns": [ + { + "expression": "public_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "idx_red_packets_admin_id": { + "name": "idx_red_packets_admin_id", + "columns": [ + { + "expression": "admin_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "roles": {}, + "policies": {}, + "views": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} \ No newline at end of file diff --git a/tonesc-red-packet/drizzle/meta/0006_snapshot.json b/tonesc-red-packet/drizzle/meta/0006_snapshot.json new file mode 100644 index 0000000..e7f4cca --- /dev/null +++ b/tonesc-red-packet/drizzle/meta/0006_snapshot.json @@ -0,0 +1,215 @@ +{ + "id": "c91ad204-8ce6-4029-9490-763ed4dcc177", + "prevId": "d833ecb6-de56-4777-8907-a8d8d7737a24", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.red_packet_draws": { + "name": "red_packet_draws", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "red_packet_id": { + "name": "red_packet_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "amount": { + "name": "amount", + "type": "numeric(38, 8)", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "idx_red_packet_draws_packet_id_created_at": { + "name": "idx_red_packet_draws_packet_id_created_at", + "columns": [ + { + "expression": "red_packet_id", + "isExpression": false, + "asc": true, + "nulls": "last" + }, + { + "expression": "\"created_at\" desc", + "asc": true, + "isExpression": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.red_packets": { + "name": "red_packets", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "public_id": { + "name": "public_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "admin_id": { + "name": "admin_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "count": { + "name": "count", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "currency_name": { + "name": "currency_name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "currency_precision": { + "name": "currency_precision", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "rule": { + "name": "rule", + "type": "jsonb", + "primaryKey": false, + "notNull": true + }, + "max_draw_times": { + "name": "max_draw_times", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "uniq_red_packets_public_id": { + "name": "uniq_red_packets_public_id", + "columns": [ + { + "expression": "public_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": true, + "concurrently": false, + "method": "btree", + "with": {} + }, + "uniq_red_packets_admin_id": { + "name": "uniq_red_packets_admin_id", + "columns": [ + { + "expression": "admin_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": true, + "concurrently": false, + "method": "btree", + "with": {} + }, + "idx_red_packets_public_id": { + "name": "idx_red_packets_public_id", + "columns": [ + { + "expression": "public_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "idx_red_packets_admin_id": { + "name": "idx_red_packets_admin_id", + "columns": [ + { + "expression": "admin_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "roles": {}, + "policies": {}, + "views": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} \ No newline at end of file