mirror of
https://github.com/whekin/household-bot.git
synced 2026-04-01 02:04:03 +00:00
feat(member): add household lifecycle states
This commit is contained in:
1
packages/db/drizzle/0014_empty_risque.sql
Normal file
1
packages/db/drizzle/0014_empty_risque.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE "members" ADD COLUMN "lifecycle_status" text DEFAULT 'active' NOT NULL;
|
||||
2952
packages/db/drizzle/meta/0014_snapshot.json
Normal file
2952
packages/db/drizzle/meta/0014_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -99,6 +99,13 @@
|
||||
"when": 1773147481265,
|
||||
"tag": "0013_wild_avengers",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 14,
|
||||
"version": "7",
|
||||
"when": 1773222186943,
|
||||
"tag": "0014_empty_risque",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -194,6 +194,7 @@ export const members = pgTable(
|
||||
.references(() => households.id, { onDelete: 'cascade' }),
|
||||
telegramUserId: text('telegram_user_id').notNull(),
|
||||
displayName: text('display_name').notNull(),
|
||||
lifecycleStatus: text('lifecycle_status').default('active').notNull(),
|
||||
preferredLocale: text('preferred_locale'),
|
||||
rentShareWeight: integer('rent_share_weight').default(1).notNull(),
|
||||
isAdmin: integer('is_admin').default(0).notNull(),
|
||||
|
||||
Reference in New Issue
Block a user