You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: admin/backend/prisma/schema.prisma
+33-6Lines changed: 33 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -224,12 +224,12 @@ model recreation_structure {
224
224
225
225
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
@@ -1522,6 +1522,33 @@ model recreation_asset_repair_history {
1522
1522
@@schema("rst")
1523
1523
}
1524
1524
1525
+
/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
/// The underlying table does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
1539
+
modelrecreation_asset_code_history {
1540
+
asset_codeInt
1541
+
descriptionString?@db.VarChar(120)
1542
+
updated_atDateTime?@db.Timestamp(6)
1543
+
updated_byString?
1544
+
created_atDateTime?@db.Timestamp(6)
1545
+
created_byString?
1546
+
sys_periodUnsupported("tstzrange")
1547
+
1548
+
@@ignore
1549
+
@@schema("rst")
1550
+
}
1551
+
1525
1552
/// The underlying view does not contain a valid unique identifier and can therefore currently not be handled by Prisma Client.
1526
1553
/// This view or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
-- recreation_asset_code must be created before recreation_asset (FK dependency)
3
+
createtablerst.recreation_asset_code
4
+
(
5
+
asset_code serialprimary key,
6
+
description varchar(120)
9
7
);
10
8
9
+
comment on table rst.recreation_asset_code is 'Codes describing the classification type of an individual recreation asset (e.g. Campsite, Table, Toilet). Not FTA-synced; managed internally.';
10
+
comment on column rst.recreation_asset_code.asset_code is 'Surrogate primary key for the asset type code.';
11
+
comment on column rst.recreation_asset_code.description is 'Description of the asset type.';
comment on table rst.recreation_asset is 'Individualised asset entities with parent-child relationships (e.g., Campsite → Table). Geometry stored in recreation_asset_geom.';
50
145
comment on column rst.recreation_asset.asset_id is 'Unique surrogate identifier for the individual asset.';
51
146
comment on column rst.recreation_asset.parent_id is 'ID of the parent container asset (e.g., Campsite, Day Use Area, Zone). NULL if top-level.';
52
147
comment on column rst.recreation_asset.asset_tag is 'Physical barcode, field tag, or campsite designation (e.g., CS-012, TBL-012-A).';
53
148
comment on column rst.recreation_asset.rec_resource_id is 'FK to the parent Recreation Resource / Site (rst.recreation_resource).';
54
-
comment on column rst.recreation_asset.recreation_structure_code is 'Asset classification type (FK to rst.recreation_structure_code.structure_code).';
55
-
comment on column rst.recreation_asset.asset_name is 'Optional display name for the asset. UI defaults to structure_code description when null.';
149
+
comment on column rst.recreation_asset.asset_code is 'Asset classification type (FK to rst.recreation_asset_code.asset_code).';
150
+
comment on column rst.recreation_asset.asset_name is 'Optional display name for the asset. UI defaults to asset_code description when null.';
56
151
comment on column rst.recreation_asset.asset_comment is 'Free-text note or migrated structure_name value for this asset.';
57
152
comment on column rst.recreation_asset.legacy_structure_id is 'Informational string reference to the legacy aggregate recreation_structure record.';
58
153
comment on column rst.recreation_asset.asset_length is 'Total length in metres (paths, boardwalks, fences, bridges).';
0 commit comments