@bettercms-ai/db 0.5.0 → 0.6.0

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/dist/index.d.ts CHANGED
@@ -6672,6 +6672,44 @@ declare const pages: drizzle_orm_pg_core.PgTableWithColumns<{
6672
6672
  }, {}, {
6673
6673
  $type: Record<string, unknown> | null;
6674
6674
  }>;
6675
+ fieldStyles: drizzle_orm_pg_core.PgColumn<{
6676
+ name: "field_styles";
6677
+ tableName: "pages";
6678
+ dataType: "json";
6679
+ columnType: "PgJsonb";
6680
+ data: Record<string, Record<string, string>> | null;
6681
+ driverParam: unknown;
6682
+ notNull: false;
6683
+ hasDefault: false;
6684
+ isPrimaryKey: false;
6685
+ isAutoincrement: false;
6686
+ hasRuntimeDefault: false;
6687
+ enumValues: undefined;
6688
+ baseColumn: never;
6689
+ identity: undefined;
6690
+ generated: undefined;
6691
+ }, {}, {
6692
+ $type: Record<string, Record<string, string>> | null;
6693
+ }>;
6694
+ publishedFieldStyles: drizzle_orm_pg_core.PgColumn<{
6695
+ name: "published_field_styles";
6696
+ tableName: "pages";
6697
+ dataType: "json";
6698
+ columnType: "PgJsonb";
6699
+ data: Record<string, Record<string, string>> | null;
6700
+ driverParam: unknown;
6701
+ notNull: false;
6702
+ hasDefault: false;
6703
+ isPrimaryKey: false;
6704
+ isAutoincrement: false;
6705
+ hasRuntimeDefault: false;
6706
+ enumValues: undefined;
6707
+ baseColumn: never;
6708
+ identity: undefined;
6709
+ generated: undefined;
6710
+ }, {}, {
6711
+ $type: Record<string, Record<string, string>> | null;
6712
+ }>;
6675
6713
  status: drizzle_orm_pg_core.PgColumn<{
6676
6714
  name: "status";
6677
6715
  tableName: "pages";
package/dist/index.js CHANGED
@@ -22402,6 +22402,10 @@ var pages = pgTable2(
22402
22402
  layoutOverrideDataJson: jsonb3("layout_override_data_json").$type(),
22403
22403
  publishedLayoutOverrideStructureJson: jsonb3("published_layout_override_structure_json").$type(),
22404
22404
  publishedLayoutOverrideDataJson: jsonb3("published_layout_override_data_json").$type(),
22405
+ // C3 field styles (migration 0397): a page FIELD's own width/spacing/text tokens, keyed by field
22406
+ // path, draft/live like the body. NULL = no field styled. A trigger copies draft -> live on publish.
22407
+ fieldStyles: jsonb3("field_styles").$type(),
22408
+ publishedFieldStyles: jsonb3("published_field_styles").$type(),
22405
22409
  status: varchar2("status", { length: 20 }).notNull().default("draft"),
22406
22410
  // draft | published
22407
22411
  // Editorial workflow. Stores the stage KEY from workflow_stages, exactly like