Files
tonesc-red-packet/tonesc-red-packet/drizzle/meta/0001_snapshot.json
2026-01-07 23:22:15 +08:00

119 lines
2.8 KiB
JSON

{
"id": "9014ade0-6c3e-40da-8176-cd14eabb4ace",
"prevId": "4364f415-f126-4322-b8c8-7783581a1962",
"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(20, 10)",
"primaryKey": false,
"notNull": true
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.red_packets": {
"name": "red_packets",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"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": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
}
},
"enums": {},
"schemas": {},
"sequences": {},
"roles": {},
"policies": {},
"views": {},
"_meta": {
"columns": {},
"schemas": {},
"tables": {}
}
}