procbay-schema 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "procbay-schema",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "A set of utilities for managing Prisma database schemas, seeding, and maintenance operations for the Procure-to-Pay system",
5
5
  "main": "src/prisma/index.js",
6
6
  "type": "module",
@@ -0,0 +1,2 @@
1
+ -- AlterTable
2
+ ALTER TABLE "export_logs" ALTER COLUMN "expires_at" SET DEFAULT NOW() + INTERVAL '7 days';
@@ -39,6 +39,7 @@ export async function seedTemplates(prismaClient) {
39
39
  field_name: field.field_name,
40
40
  }, // Use a unique identifier for fields
41
41
  data: {
42
+ field_slug: field.field_slug,
42
43
  field_type: field.field_type,
43
44
  field_role: field.field_role,
44
45
  field_placement: field.field_placement,
@@ -60,6 +61,7 @@ export async function seedTemplates(prismaClient) {
60
61
  fields: {
61
62
  create: template.fields.map((field) => ({
62
63
  field_name: field.field_name,
64
+ field_slug: field.field_slug,
63
65
  field_type: field.field_type,
64
66
  field_role: field.field_role,
65
67
  field_placement: field.field_placement,