feat: add card skins support
This commit is contained in:
@@ -281,8 +281,15 @@ export const idTag = pgTable('id_tag', {
|
||||
* 储值卡余额(单位:分)
|
||||
* 以整数存储,1 分 = 0.01 CNY,前端显示时除以 100
|
||||
*/
|
||||
balance: integer('balance').notNull().default(0),
|
||||
createdAt: timestamp('created_at', { withTimezone: true })
|
||||
balance: integer('balance').notNull().default(0), /**
|
||||
* 卡面内容排列方式
|
||||
*/
|
||||
cardLayout: varchar('card_layout', { enum: ['center', 'around'] }).default('around'),
|
||||
/**
|
||||
* 卡底装饰风格
|
||||
* 对应 faces/ 目录中已注册的卡面组件
|
||||
*/
|
||||
cardSkin: varchar('card_skin', { enum: ['line', 'circles', 'glow', 'vip', 'redeye'] }).default('circles'), createdAt: timestamp('created_at', { withTimezone: true })
|
||||
.notNull()
|
||||
.defaultNow(),
|
||||
updatedAt: timestamp('updated_at', { withTimezone: true })
|
||||
|
||||
Reference in New Issue
Block a user