@@ -78,6 +78,7 @@ CRUD operations for SqlAction records.
7878| ` actionId ` | UUID | Yes |
7979| ` actionName ` | String | Yes |
8080| ` actorId ` | UUID | Yes |
81+ | ` category ` | String | Yes |
8182| ` content ` | String | Yes |
8283| ` createdAt ` | Datetime | No |
8384| ` databaseId ` | UUID | Yes |
@@ -93,13 +94,13 @@ CRUD operations for SqlAction records.
9394
9495``` typescript
9596// List all sqlAction records
96- const items = await db .sqlAction .findMany ({ select: { actionId: true , actionName: true , actorId: true , content: true , createdAt: true , databaseId: true , deploy: true , deps: true , id: true , name: true , payload: true , revert: true , verify: true } }).execute ();
97+ const items = await db .sqlAction .findMany ({ select: { actionId: true , actionName: true , actorId: true , category: true , content: true , createdAt: true , databaseId: true , deploy: true , deps: true , id: true , name: true , payload: true , revert: true , verify: true } }).execute ();
9798
9899// Get one by id
99- const item = await db .sqlAction .findOne ({ id: ' <Int>' , select: { actionId: true , actionName: true , actorId: true , content: true , createdAt: true , databaseId: true , deploy: true , deps: true , id: true , name: true , payload: true , revert: true , verify: true } }).execute ();
100+ const item = await db .sqlAction .findOne ({ id: ' <Int>' , select: { actionId: true , actionName: true , actorId: true , category: true , content: true , createdAt: true , databaseId: true , deploy: true , deps: true , id: true , name: true , payload: true , revert: true , verify: true } }).execute ();
100101
101102// Create
102- const created = await db .sqlAction .create ({ data: { actionId: ' <UUID>' , actionName: ' <String>' , actorId: ' <UUID>' , content: ' <String>' , databaseId: ' <UUID>' , deploy: ' <String>' , deps: ' <String>' , name: ' <String>' , payload: ' <JSON>' , revert: ' <String>' , verify: ' <String>' }, select: { id: true } }).execute ();
103+ const created = await db .sqlAction .create ({ data: { actionId: ' <UUID>' , actionName: ' <String>' , actorId: ' <UUID>' , category: ' <String> ' , content: ' <String>' , databaseId: ' <UUID>' , deploy: ' <String>' , deps: ' <String>' , name: ' <String>' , payload: ' <JSON>' , revert: ' <String>' , verify: ' <String>' }, select: { id: true } }).execute ();
103104
104105// Update
105106const updated = await db .sqlAction .update ({ where: { id: ' <Int>' }, data: { actionId: ' <UUID>' }, select: { id: true } }).execute ();
0 commit comments