feat(member): add household lifecycle states

This commit is contained in:
2026-03-11 13:44:38 +04:00
parent 015298281c
commit 773abf2531
32 changed files with 3671 additions and 38 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE "members" ADD COLUMN "lifecycle_status" text DEFAULT 'active' NOT NULL;

File diff suppressed because it is too large Load Diff

View File

@@ -99,6 +99,13 @@
"when": 1773147481265,
"tag": "0013_wild_avengers",
"breakpoints": true
},
{
"idx": 14,
"version": "7",
"when": 1773222186943,
"tag": "0014_empty_risque",
"breakpoints": true
}
]
}

View File

@@ -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(),