Skip to content

Commit d172d10

Browse files
authored
Merge pull request #1020 from constructive-io/schema-update/20260420-222447
chore: update schemas from constructive-db
2 parents a6424a8 + 38103af commit d172d10

15 files changed

Lines changed: 791 additions & 385 deletions

File tree

.agents/skills/cli-public/references/notifications-module.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ csdk notifications-module list --where.<field>.<op> <value> --orderBy <values>
1212
csdk notifications-module list --limit 10 --after <cursor>
1313
csdk notifications-module find-first --where.<field>.<op> <value>
1414
csdk notifications-module get --id <UUID>
15-
csdk notifications-module create --databaseId <UUID> [--schemaId <UUID>] [--privateSchemaId <UUID>] [--notificationsTableId <UUID>] [--eventsTableId <UUID>] [--preferencesTableId <UUID>] [--channelsTableId <UUID>] [--deliveryLogTableId <UUID>] [--ownerTableId <UUID>] [--userSettingsTableId <UUID>] [--organizationSettingsTableId <UUID>]
16-
csdk notifications-module update --id <UUID> [--databaseId <UUID>] [--schemaId <UUID>] [--privateSchemaId <UUID>] [--notificationsTableId <UUID>] [--eventsTableId <UUID>] [--preferencesTableId <UUID>] [--channelsTableId <UUID>] [--deliveryLogTableId <UUID>] [--ownerTableId <UUID>] [--userSettingsTableId <UUID>] [--organizationSettingsTableId <UUID>]
15+
csdk notifications-module create --databaseId <UUID> [--schemaId <UUID>] [--privateSchemaId <UUID>] [--notificationsTableId <UUID>] [--readStateTableId <UUID>] [--preferencesTableId <UUID>] [--channelsTableId <UUID>] [--deliveryLogTableId <UUID>] [--ownerTableId <UUID>] [--userSettingsTableId <UUID>] [--organizationSettingsTableId <UUID>] [--hasChannels <Boolean>] [--hasPreferences <Boolean>] [--hasSettingsExtension <Boolean>] [--hasDigestMetadata <Boolean>] [--hasSubscriptions <Boolean>]
16+
csdk notifications-module update --id <UUID> [--databaseId <UUID>] [--schemaId <UUID>] [--privateSchemaId <UUID>] [--notificationsTableId <UUID>] [--readStateTableId <UUID>] [--preferencesTableId <UUID>] [--channelsTableId <UUID>] [--deliveryLogTableId <UUID>] [--ownerTableId <UUID>] [--userSettingsTableId <UUID>] [--organizationSettingsTableId <UUID>] [--hasChannels <Boolean>] [--hasPreferences <Boolean>] [--hasSettingsExtension <Boolean>] [--hasDigestMetadata <Boolean>] [--hasSubscriptions <Boolean>]
1717
csdk notifications-module delete --id <UUID>
1818
```
1919

@@ -58,7 +58,7 @@ csdk notifications-module list --where.id.equalTo <value> --orderBy ID_ASC
5858
### Create a notificationsModule
5959

6060
```bash
61-
csdk notifications-module create --databaseId <UUID> [--schemaId <UUID>] [--privateSchemaId <UUID>] [--notificationsTableId <UUID>] [--eventsTableId <UUID>] [--preferencesTableId <UUID>] [--channelsTableId <UUID>] [--deliveryLogTableId <UUID>] [--ownerTableId <UUID>] [--userSettingsTableId <UUID>] [--organizationSettingsTableId <UUID>]
61+
csdk notifications-module create --databaseId <UUID> [--schemaId <UUID>] [--privateSchemaId <UUID>] [--notificationsTableId <UUID>] [--readStateTableId <UUID>] [--preferencesTableId <UUID>] [--channelsTableId <UUID>] [--deliveryLogTableId <UUID>] [--ownerTableId <UUID>] [--userSettingsTableId <UUID>] [--organizationSettingsTableId <UUID>] [--hasChannels <Boolean>] [--hasPreferences <Boolean>] [--hasSettingsExtension <Boolean>] [--hasDigestMetadata <Boolean>] [--hasSubscriptions <Boolean>]
6262
```
6363

6464
### Get a notificationsModule by id

.agents/skills/hooks-public/references/notifications-module.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ React Query hooks for NotificationsModule data operations
77
## Usage
88

99
```typescript
10-
useNotificationsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, eventsTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true } } })
11-
useNotificationsModuleQuery({ id: '<UUID>', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, eventsTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true } } })
10+
useNotificationsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } } })
11+
useNotificationsModuleQuery({ id: '<UUID>', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } } })
1212
useCreateNotificationsModuleMutation({ selection: { fields: { id: true } } })
1313
useUpdateNotificationsModuleMutation({ selection: { fields: { id: true } } })
1414
useDeleteNotificationsModuleMutation({})
@@ -20,7 +20,7 @@ useDeleteNotificationsModuleMutation({})
2020

2121
```typescript
2222
const { data, isLoading } = useNotificationsModulesQuery({
23-
selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, eventsTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true } },
23+
selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, notificationsTableId: true, readStateTableId: true, preferencesTableId: true, channelsTableId: true, deliveryLogTableId: true, ownerTableId: true, userSettingsTableId: true, organizationSettingsTableId: true, hasChannels: true, hasPreferences: true, hasSettingsExtension: true, hasDigestMetadata: true, hasSubscriptions: true } },
2424
});
2525
```
2626

@@ -30,5 +30,5 @@ const { data, isLoading } = useNotificationsModulesQuery({
3030
const { mutate } = useCreateNotificationsModuleMutation({
3131
selection: { fields: { id: true } },
3232
});
33-
mutate({ databaseId: '<UUID>', schemaId: '<UUID>', privateSchemaId: '<UUID>', notificationsTableId: '<UUID>', eventsTableId: '<UUID>', preferencesTableId: '<UUID>', channelsTableId: '<UUID>', deliveryLogTableId: '<UUID>', ownerTableId: '<UUID>', userSettingsTableId: '<UUID>', organizationSettingsTableId: '<UUID>' });
33+
mutate({ databaseId: '<UUID>', schemaId: '<UUID>', privateSchemaId: '<UUID>', notificationsTableId: '<UUID>', readStateTableId: '<UUID>', preferencesTableId: '<UUID>', channelsTableId: '<UUID>', deliveryLogTableId: '<UUID>', ownerTableId: '<UUID>', userSettingsTableId: '<UUID>', organizationSettingsTableId: '<UUID>', hasChannels: '<Boolean>', hasPreferences: '<Boolean>', hasSettingsExtension: '<Boolean>', hasDigestMetadata: '<Boolean>', hasSubscriptions: '<Boolean>' });
3434
```

.agents/skills/orm-public/references/notifications-module.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ORM operations for NotificationsModule records
99
```typescript
1010
db.notificationsModule.findMany({ select: { id: true } }).execute()
1111
db.notificationsModule.findOne({ id: '<UUID>', select: { id: true } }).execute()
12-
db.notificationsModule.create({ data: { databaseId: '<UUID>', schemaId: '<UUID>', privateSchemaId: '<UUID>', notificationsTableId: '<UUID>', eventsTableId: '<UUID>', preferencesTableId: '<UUID>', channelsTableId: '<UUID>', deliveryLogTableId: '<UUID>', ownerTableId: '<UUID>', userSettingsTableId: '<UUID>', organizationSettingsTableId: '<UUID>' }, select: { id: true } }).execute()
12+
db.notificationsModule.create({ data: { databaseId: '<UUID>', schemaId: '<UUID>', privateSchemaId: '<UUID>', notificationsTableId: '<UUID>', readStateTableId: '<UUID>', preferencesTableId: '<UUID>', channelsTableId: '<UUID>', deliveryLogTableId: '<UUID>', ownerTableId: '<UUID>', userSettingsTableId: '<UUID>', organizationSettingsTableId: '<UUID>', hasChannels: '<Boolean>', hasPreferences: '<Boolean>', hasSettingsExtension: '<Boolean>', hasDigestMetadata: '<Boolean>', hasSubscriptions: '<Boolean>' }, select: { id: true } }).execute()
1313
db.notificationsModule.update({ where: { id: '<UUID>' }, data: { databaseId: '<UUID>' }, select: { id: true } }).execute()
1414
db.notificationsModule.delete({ where: { id: '<UUID>' } }).execute()
1515
```
@@ -28,7 +28,7 @@ const items = await db.notificationsModule.findMany({
2828

2929
```typescript
3030
const item = await db.notificationsModule.create({
31-
data: { databaseId: '<UUID>', schemaId: '<UUID>', privateSchemaId: '<UUID>', notificationsTableId: '<UUID>', eventsTableId: '<UUID>', preferencesTableId: '<UUID>', channelsTableId: '<UUID>', deliveryLogTableId: '<UUID>', ownerTableId: '<UUID>', userSettingsTableId: '<UUID>', organizationSettingsTableId: '<UUID>' },
31+
data: { databaseId: '<UUID>', schemaId: '<UUID>', privateSchemaId: '<UUID>', notificationsTableId: '<UUID>', readStateTableId: '<UUID>', preferencesTableId: '<UUID>', channelsTableId: '<UUID>', deliveryLogTableId: '<UUID>', ownerTableId: '<UUID>', userSettingsTableId: '<UUID>', organizationSettingsTableId: '<UUID>', hasChannels: '<Boolean>', hasPreferences: '<Boolean>', hasSettingsExtension: '<Boolean>', hasDigestMetadata: '<Boolean>', hasSubscriptions: '<Boolean>' },
3232
select: { id: true }
3333
}).execute();
3434
```

sdk/constructive-cli/src/public/cli/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2554,16 +2554,21 @@ CRUD operations for NotificationsModule records.
25542554
| `schemaId` | UUID |
25552555
| `privateSchemaId` | UUID |
25562556
| `notificationsTableId` | UUID |
2557-
| `eventsTableId` | UUID |
2557+
| `readStateTableId` | UUID |
25582558
| `preferencesTableId` | UUID |
25592559
| `channelsTableId` | UUID |
25602560
| `deliveryLogTableId` | UUID |
25612561
| `ownerTableId` | UUID |
25622562
| `userSettingsTableId` | UUID |
25632563
| `organizationSettingsTableId` | UUID |
2564+
| `hasChannels` | Boolean |
2565+
| `hasPreferences` | Boolean |
2566+
| `hasSettingsExtension` | Boolean |
2567+
| `hasDigestMetadata` | Boolean |
2568+
| `hasSubscriptions` | Boolean |
25642569

25652570
**Required create fields:** `databaseId`
2566-
**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `notificationsTableId`, `eventsTableId`, `preferencesTableId`, `channelsTableId`, `deliveryLogTableId`, `ownerTableId`, `userSettingsTableId`, `organizationSettingsTableId`
2571+
**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `notificationsTableId`, `readStateTableId`, `preferencesTableId`, `channelsTableId`, `deliveryLogTableId`, `ownerTableId`, `userSettingsTableId`, `organizationSettingsTableId`, `hasChannels`, `hasPreferences`, `hasSettingsExtension`, `hasDigestMetadata`, `hasSubscriptions`
25672572

25682573
### `database-provision-module`
25692574

0 commit comments

Comments
 (0)