add function for user

- create house
- edit house
- delete house
- list all member for active house
This commit is contained in:
2026-02-08 13:43:14 +07:00
parent 42435faa7f
commit 1d3e79c546
40 changed files with 1006 additions and 170 deletions

View File

@@ -27,6 +27,10 @@ export const houseCreateBESchema = houseCreateSchema.extend({
slug: z.string().nonempty(m.common_is_required({ field: 'Slug' })),
});
export const houseCreateByUserBESchema = houseCreateBESchema.omit({
userId: true,
});
export const houseEditSchema = baseHouse.extend({
name: z
.string()