diff --git a/backend/sites/src/app/entities/sisAddresses.entity.ts b/backend/sites/src/app/entities/sisAddresses.entity.ts index 27a0e082..109d0b25 100644 --- a/backend/sites/src/app/entities/sisAddresses.entity.ts +++ b/backend/sites/src/app/entities/sisAddresses.entity.ts @@ -2,35 +2,35 @@ import { Field, ObjectType } from '@nestjs/graphql'; import { Column, Entity, Index, JoinColumn, ManyToOne } from "typeorm"; import { PeopleOrgs } from "./peopleOrgs.entity"; -@ObjectType +@ObjectType() @Index("sis_addresses_pkey", ["id"], { unique: true }) @Index("addr_a_location_for_frgn", ["psnorgId"], {}) @Entity("sis_addresses") export class SisAddresses { - @Field + @Field() @Column("bigint", { primary: true, name: "id" }) id: string; - @Field + @Field() @Column("bigint", { name: "psnorg_id" }) psnorgId: string; - @Field + @Field() @Column("timestamp without time zone", { name: "effective_date", nullable: true, }) effectiveDate: Date | null; - @Field + @Field() @Column("timestamp without time zone", { name: "termination_date", nullable: true, }) terminationDate: Date | null; - @Field + @Field() @Column("character varying", { name: "bus_area_code", nullable: true, @@ -38,7 +38,7 @@ export class SisAddresses { }) busAreaCode: string | null; - @Field + @Field() @Column("character varying", { name: "bus_phone_no", nullable: true, @@ -46,7 +46,7 @@ export class SisAddresses { }) busPhoneNo: string | null; - @Field + @Field() @Column("character varying", { name: "fax_area_code", nullable: true, @@ -54,7 +54,7 @@ export class SisAddresses { }) faxAreaCode: string | null; - @Field + @Field() @Column("character varying", { name: "fax_phone_no", nullable: true, @@ -62,7 +62,7 @@ export class SisAddresses { }) faxPhoneNo: string | null; - @Field + @Field() @Column("character varying", { name: "home_area_code", nullable: true, @@ -70,7 +70,7 @@ export class SisAddresses { }) homeAreaCode: string | null; - @Field + @Field() @Column("character varying", { name: "home_phone_no", nullable: true, @@ -78,15 +78,15 @@ export class SisAddresses { }) homePhoneNo: string | null; - @Field + @Field() @Column("character varying", { name: "addr_type", length: 7 }) addrType: string; - @Field + @Field() @Column("character varying", { name: "addr_line_1", length: 50 }) addrLine_1: string; - @Field + @Field() @Column("character varying", { name: "addr_line_2", nullable: true, @@ -94,7 +94,7 @@ export class SisAddresses { }) addrLine_2: string | null; - @Field + @Field() @Column("character varying", { name: "addr_line_3", nullable: true, @@ -102,7 +102,7 @@ export class SisAddresses { }) addrLine_3: string | null; - @Field + @Field() @Column("character varying", { name: "addr_line_4", nullable: true, @@ -110,19 +110,19 @@ export class SisAddresses { }) addrLine_4: string | null; - @Field + @Field() @Column("character varying", { name: "city", length: 30 }) city: string; - @Field + @Field() @Column("character varying", { name: "prov_state", length: 2 }) provState: string; - @Field + @Field() @Column("character varying", { name: "country", length: 3 }) country: string; - @Field + @Field() @Column("character varying", { name: "postal_code", nullable: true, @@ -130,11 +130,11 @@ export class SisAddresses { }) postalCode: string | null; - @Field + @Field() @Column("character varying", { name: "who_created", length: 30 }) whoCreated: string; - @Field + @Field() @Column("character varying", { name: "who_updated", nullable: true, @@ -142,11 +142,11 @@ export class SisAddresses { }) whoUpdated: string | null; - @Field + @Field() @Column("timestamp without time zone", { name: "when_created" }) whenCreated: Date; - @Field + @Field() @Column("timestamp without time zone", { name: "when_updated", nullable: true, diff --git a/backend/sites/src/app/entities/siteAssocs.entity.ts b/backend/sites/src/app/entities/siteAssocs.entity.ts index 71460b07..2fc00101 100644 --- a/backend/sites/src/app/entities/siteAssocs.entity.ts +++ b/backend/sites/src/app/entities/siteAssocs.entity.ts @@ -2,7 +2,7 @@ import { Field, ObjectType } from '@nestjs/graphql'; import { Column, Entity, Index, JoinColumn, ManyToOne } from "typeorm"; import { Sites } from "./sites.entity"; -@ObjectType +@ObjectType() @Index("sa_rwm_flag", ["rwmFlag"], {}) @Index("sa_rwm_note_flag", ["rwmNoteFlag"], {}) @Index("sa_adjacent_to_frgn", ["siteId"], {}) @@ -11,27 +11,27 @@ import { Sites } from "./sites.entity"; @Entity("site_assocs") export class SiteAssocs { - @Field + @Field() @Column("bigint", { primary: true, name: "site_id" }) siteId: string; - @Field + @Field() @Column("bigint", { primary: true, name: "site_id_associated_with" }) siteIdAssociatedWith: string; - @Field + @Field() @Column("timestamp without time zone", { name: "effective_date" }) effectiveDate: Date; - @Field + @Field() @Column("character varying", { name: "note", nullable: true, length: 255 }) note: string | null; - @Field + @Field() @Column("character varying", { name: "who_created", length: 30 }) whoCreated: string; - @Field + @Field() @Column("character varying", { name: "who_updated", nullable: true, @@ -39,26 +39,26 @@ export class SiteAssocs { }) whoUpdated: string | null; - @Field + @Field() @Column("timestamp without time zone", { name: "when_created" }) whenCreated: Date; - @Field + @Field() @Column("timestamp without time zone", { name: "when_updated", nullable: true, }) whenUpdated: Date | null; - @Field + @Field() @Column("smallint", { name: "rwm_flag" }) rwmFlag: number; - @Field + @Field() @Column("smallint", { name: "rwm_note_flag" }) rwmNoteFlag: number; - @Field + @Field() @Column("character varying", { name: "common_pid", length: 1 }) commonPid: string; diff --git a/backend/sites/src/app/entities/siteContaminationClassXref.entity.ts b/backend/sites/src/app/entities/siteContaminationClassXref.entity.ts index 0f57d9ca..082018fe 100644 --- a/backend/sites/src/app/entities/siteContaminationClassXref.entity.ts +++ b/backend/sites/src/app/entities/siteContaminationClassXref.entity.ts @@ -3,7 +3,7 @@ import { Column, Entity, Index, JoinColumn, ManyToOne } from "typeorm"; import { ContaminationClassCd } from "./contaminationClassCd.entity"; import { SiteCrownLandContaminated } from "./siteCrownLandContaminated.entity"; -@ObjectType +@ObjectType() @Index( "site_contamination_class_xref_pkey", ["contaminationClassCode", "sclcId"], @@ -12,11 +12,11 @@ import { SiteCrownLandContaminated } from "./siteCrownLandContaminated.entity"; @Entity("site_contamination_class_xref") export class SiteContaminationClassXref { - @Field + @Field() @Column("bigint", { primary: true, name: "sclc_id" }) sclcId: string; - @Field + @Field() @Column("character varying", { primary: true, name: "contamination_class_code", @@ -24,11 +24,11 @@ export class SiteContaminationClassXref { }) contaminationClassCode: string; - @Field + @Field() @Column("character varying", { name: "who_created", length: 30 }) whoCreated: string; - @Field + @Field() @Column("character varying", { name: "who_updated", nullable: true, @@ -36,11 +36,11 @@ export class SiteContaminationClassXref { }) whoUpdated: string | null; - @Field + @Field() @Column("timestamp without time zone", { name: "when_created" }) whenCreated: Date; - @Field + @Field() @Column("timestamp without time zone", { name: "when_updated", nullable: true, diff --git a/backend/sites/src/app/entities/siteCrownLandContaminated.entity.ts b/backend/sites/src/app/entities/siteCrownLandContaminated.entity.ts index 9911a803..68796727 100644 --- a/backend/sites/src/app/entities/siteCrownLandContaminated.entity.ts +++ b/backend/sites/src/app/entities/siteCrownLandContaminated.entity.ts @@ -5,40 +5,40 @@ import { Sites } from './sites.entity' import { PeopleOrgs } from './peopleOrgs.entity' import { SiteCrownLandStatusCd } from './siteCrownLandStatusCd.entity' -@ObjectType +@ObjectType() @Index("site_crown_land_contaminated_pkey", ["id",], { unique: true }) @Entity("site_crown_land_contaminated") export class SiteCrownLandContaminated { - @Field + @Field() @Column("bigint", { primary: true, name: "id" }) id: string; - @Field + @Field() @Column("double precision", { name: "estimated_cost_of_remediations", precision: 53 }) estimatedCostOfRemediations: number; - @Field + @Field() @Column("double precision", { name: "actual_cost_of_remediations", nullable: true, precision: 53 }) actualCostOfRemediations: number | null; - @Field + @Field() @Column("character varying", { name: "contamination_other_desc", nullable: true, length: 50 }) contaminationOtherDesc: string | null; - @Field + @Field() @Column("character varying", { name: "who_created", length: 30 }) whoCreated: string; - @Field + @Field() @Column("character varying", { name: "who_updated", nullable: true, length: 30, default: () => "statement_timestamp()", }) whoUpdated: string | null; - @Field + @Field() @Column("timestamp without time zone", { name: "when_created" }) whenCreated: Date; - @Field + @Field() @Column("timestamp without time zone", { name: "when_updated", nullable: true, default: () => "statement_timestamp()", }) whenUpdated: Date | null; diff --git a/backend/sites/src/app/entities/siteCrownLandStatusCd.entity.ts b/backend/sites/src/app/entities/siteCrownLandStatusCd.entity.ts index 3ae5d489..ad3ae678 100644 --- a/backend/sites/src/app/entities/siteCrownLandStatusCd.entity.ts +++ b/backend/sites/src/app/entities/siteCrownLandStatusCd.entity.ts @@ -2,16 +2,16 @@ import { Field, ObjectType } from '@nestjs/graphql'; import { Column, Entity, Index, OneToMany } from "typeorm"; import { SiteCrownLandContaminated } from "./siteCrownLandContaminated.entity"; -@ObjectType +@ObjectType() @Index("site_crown_land_status_cd_pkey", ["code"], { unique: true }) @Entity("site_crown_land_status_cd") export class SiteCrownLandStatusCd { - @Field + @Field() @Column("character varying", { primary: true, name: "code", length: 6 }) code: string; - @Field + @Field() @Column("character varying", { name: "description", length: 140 }) description: string; diff --git a/backend/sites/src/app/entities/siteDocPartics.entity.ts b/backend/sites/src/app/entities/siteDocPartics.entity.ts index 1b45280a..07b22cb3 100644 --- a/backend/sites/src/app/entities/siteDocPartics.entity.ts +++ b/backend/sites/src/app/entities/siteDocPartics.entity.ts @@ -5,7 +5,7 @@ import { PeopleOrgs } from "./peopleOrgs.entity"; import { SiteDocs } from "./siteDocs.entity"; import { SitePartics } from "./sitePartics.entity"; -@ObjectType +@ObjectType() @Index("sdp_classified_by_frgn", ["dprCode"], {}) @Index( "site_doc_partics_sdoc_id_psnorg_id_dpr_code_key", @@ -20,31 +20,31 @@ import { SitePartics } from "./sitePartics.entity"; @Entity("site_doc_partics") export class SiteDocPartics { - @Field + @Field() @Column("bigint", { primary: true, name: "id" }) id: string; - @Field + @Field() @Column("character varying", { name: "dpr_code", unique: true, length: 6 }) dprCode: string; - @Field + @Field() @Column("bigint", { name: "sdoc_id", unique: true }) sdocId: string; - @Field + @Field() @Column("bigint", { name: "sp_id" }) spId: string; - @Field + @Field() @Column("bigint", { name: "psnorg_id", unique: true }) psnorgId: string; - @Field + @Field() @Column("character varying", { name: "who_created", length: 30 }) whoCreated: string; - @Field + @Field() @Column("character varying", { name: "who_updated", nullable: true, @@ -52,18 +52,18 @@ export class SiteDocPartics { }) whoUpdated: string | null; - @Field + @Field() @Column("timestamp without time zone", { name: "when_created" }) whenCreated: Date; - @Field + @Field() @Column("timestamp without time zone", { name: "when_updated", nullable: true, }) whenUpdated: Date | null; - @Field + @Field() @Column("smallint", { name: "rwm_flag" }) rwmFlag: number; diff --git a/backend/sites/src/app/entities/siteDocs.entity.ts b/backend/sites/src/app/entities/siteDocs.entity.ts index ac9f89d8..12bffd83 100644 --- a/backend/sites/src/app/entities/siteDocs.entity.ts +++ b/backend/sites/src/app/entities/siteDocs.entity.ts @@ -13,45 +13,45 @@ import { MeasurementPopulations } from "./measurementPopulations.entity"; import { SiteDocPartics } from "./siteDocPartics.entity"; import { Sites } from "./sites.entity"; -@ObjectType +@ObjectType() @Index("site_docs_pkey", ["id"], { unique: true }) @Index("sdoc_rwm_flag", ["rwmFlag"], {}) @Index("sdoc_about_frgn", ["siteId"], {}) @Entity("site_docs") export class SiteDocs { - @Field + @Field() @Column("bigint", { primary: true, name: "id" }) id: string; - @Field + @Field() @Column("bigint", { name: "site_id" }) siteId: string; - @Field + @Field() @Column("timestamp without time zone", { name: "submission_date" }) submissionDate: Date; - @Field + @Field() @Column("timestamp without time zone", { name: "document_date", nullable: true, }) documentDate: Date | null; - @Field + @Field() @Column("character varying", { name: "title", length: 150 }) title: string; - @Field + @Field() @Column("character varying", { name: "note", nullable: true, length: 255 }) note: string | null; - @Field + @Field() @Column("character varying", { name: "who_created", length: 30 }) whoCreated: string; - @Field + @Field() @Column("character varying", { name: "who_updated", nullable: true, @@ -59,22 +59,22 @@ export class SiteDocs { }) whoUpdated: string | null; - @Field + @Field() @Column("timestamp without time zone", { name: "when_created" }) whenCreated: Date; - @Field + @Field() @Column("timestamp without time zone", { name: "when_updated", nullable: true, }) whenUpdated: Date | null; - @Field + @Field() @Column("smallint", { name: "rwm_flag" }) rwmFlag: number; - @Field + @Field() @Column("smallint", { name: "rwm_note_flag", nullable: true }) rwmNoteFlag: number | null; diff --git a/backend/sites/src/app/entities/siteParticRoles.entity.ts b/backend/sites/src/app/entities/siteParticRoles.entity.ts index 76cf5344..37a8b30e 100644 --- a/backend/sites/src/app/entities/siteParticRoles.entity.ts +++ b/backend/sites/src/app/entities/siteParticRoles.entity.ts @@ -3,7 +3,7 @@ import { Column, Entity, Index, JoinColumn, ManyToOne } from "typeorm"; import { ParticRoleCd } from "./particRoleCd.entity"; import { SitePartics } from "./sitePartics.entity"; -@ObjectType +@ObjectType() @Index("spr_classified_by_frgn", ["prCode"], {}) @Index("site_partic_roles_pkey", ["prCode", "spId"], { unique: true }) @Index("spr_rwm_flag", ["rwmFlag"], {}) @@ -11,19 +11,19 @@ import { SitePartics } from "./sitePartics.entity"; @Entity("site_partic_roles") export class SiteParticRoles { - @Field + @Field() @Column("character varying", { primary: true, name: "pr_code", length: 6 }) prCode: string; - @Field + @Field() @Column("bigint", { primary: true, name: "sp_id" }) spId: string; - @Field + @Field() @Column("character varying", { name: "who_created", length: 30 }) whoCreated: string; - @Field + @Field() @Column("character varying", { name: "who_updated", nullable: true, @@ -31,18 +31,18 @@ export class SiteParticRoles { }) whoUpdated: string | null; - @Field + @Field() @Column("timestamp without time zone", { name: "when_created" }) whenCreated: Date; - @Field + @Field() @Column("timestamp without time zone", { name: "when_updated", nullable: true, }) whenUpdated: Date | null; - @Field + @Field() @Column("smallint", { name: "rwm_flag" }) rwmFlag: number; diff --git a/backend/sites/src/app/entities/sitePartics.entity.ts b/backend/sites/src/app/entities/sitePartics.entity.ts index 815e0542..d8a60504 100644 --- a/backend/sites/src/app/entities/sitePartics.entity.ts +++ b/backend/sites/src/app/entities/sitePartics.entity.ts @@ -15,7 +15,7 @@ import { Sites } from "./sites.entity"; import { SiteProfileOwners } from "./siteProfileOwners.entity"; import { SiteProfiles } from "./siteProfiles.entity"; -@ObjectType +@ObjectType() @Index("site_partics_pkey", ["id"], { unique: true }) @Index("sp_identified_by_frgn", ["psnorgId"], {}) @Index("sp_rwm_flag", ["rwmFlag"], {}) @@ -23,54 +23,54 @@ import { SiteProfiles } from "./siteProfiles.entity"; @Entity("site_partics") export class SitePartics { - @Field + @Field() @Column("bigint", { primary: true, name: "id" }) id: string; - @Field + @Field() @Column("bigint", { name: "site_id" }) siteId: string; - @Field + @Field() @Column("bigint", { name: "psnorg_id" }) psnorgId: string; - @Field + @Field() @Column("timestamp without time zone", { name: "effective_date" }) effectiveDate: Date; - @Field + @Field() @Column("timestamp without time zone", { name: "end_date", nullable: true }) endDate: Date | null; - @Field + @Field() @Column("character", { name: "note", nullable: true, length: 255 }) note: string | null; - @Field + @Field() @Column("character", { name: "who_created", length: 30 }) whoCreated: string; - @Field + @Field() @Column("character", { name: "who_updated", nullable: true, length: 30 }) whoUpdated: string | null; - @Field + @Field() @Column("timestamp without time zone", { name: "when_created" }) whenCreated: Date; - @Field + @Field() @Column("timestamp without time zone", { name: "when_updated", nullable: true, }) whenUpdated: Date | null; - @Field + @Field() @Column("smallint", { name: "rwm_flag" }) rwmFlag: number; - @Field + @Field() @Column("smallint", { name: "rwm_note_flag" }) rwmNoteFlag: number; diff --git a/backend/sites/src/app/entities/siteProfileLandUses.entity.ts b/backend/sites/src/app/entities/siteProfileLandUses.entity.ts index b24ee416..156e4350 100644 --- a/backend/sites/src/app/entities/siteProfileLandUses.entity.ts +++ b/backend/sites/src/app/entities/siteProfileLandUses.entity.ts @@ -3,7 +3,7 @@ import { Column, Entity, Index, JoinColumn, ManyToOne } from "typeorm"; import { LandUseCd } from "./landUseCd.entity"; import { SiteProfiles } from "./siteProfiles.entity"; -@ObjectType +@ObjectType() @Index( "site_profile_land_uses_pkey", ["lutCode", "siteId", "sprofDateCompleted"], @@ -12,26 +12,26 @@ import { SiteProfiles } from "./siteProfiles.entity"; @Entity("site_profile_land_uses") export class SiteProfileLandUses { - @Field + @Field() @Column("bigint", { primary: true, name: "site_id" }) siteId: string; - @Field + @Field() @Column("timestamp without time zone", { primary: true, name: "sprof_date_completed", }) sprofDateCompleted: Date; - @Field + @Field() @Column("character varying", { primary: true, name: "lut_code", length: 6 }) lutCode: string; - @Field + @Field() @Column("character varying", { name: "who_created", length: 16 }) whoCreated: string; - @Field + @Field() @Column("timestamp without time zone", { name: "when_created" }) whenCreated: Date; diff --git a/backend/sites/src/app/entities/siteProfileOwners.entity.ts b/backend/sites/src/app/entities/siteProfileOwners.entity.ts index 8e139b59..6017e860 100644 --- a/backend/sites/src/app/entities/siteProfileOwners.entity.ts +++ b/backend/sites/src/app/entities/siteProfileOwners.entity.ts @@ -3,7 +3,7 @@ import { Column, Entity, Index, JoinColumn, ManyToOne } from "typeorm"; import { SiteProfiles } from "./siteProfiles.entity"; import { SitePartics } from "./sitePartics.entity"; -@ObjectType +@ObjectType() @Index("spown_sprof_fk_i", ["dateCompleted", "siteId"], {}) @Index("site_profile_owners_pkey", ["dateCompleted", "siteId", "spId"], { unique: true, @@ -12,22 +12,22 @@ import { SitePartics } from "./sitePartics.entity"; @Entity("site_profile_owners") export class SiteProfileOwners { - @Field + @Field() @Column("bigint", { primary: true, name: "site_id" }) siteId: string; - @Field + @Field() @Column("timestamp without time zone", { primary: true, name: "date_completed", }) dateCompleted: Date; - @Field + @Field() @Column("bigint", { primary: true, name: "sp_id" }) spId: string; - @Field + @Field() @Column("character varying", { name: "owner_company_contact", nullable: true, @@ -35,7 +35,7 @@ export class SiteProfileOwners { }) ownerCompanyContact: string | null; - @Field + @Field() @Column("character varying", { name: "agent_authorized_ind", nullable: true, diff --git a/backend/sites/src/app/entities/siteProfiles.entity.ts b/backend/sites/src/app/entities/siteProfiles.entity.ts index 0edfcae3..3676a48c 100644 --- a/backend/sites/src/app/entities/siteProfiles.entity.ts +++ b/backend/sites/src/app/entities/siteProfiles.entity.ts @@ -14,32 +14,32 @@ import { SiteProfileOwners } from "./siteProfileOwners.entity"; import { SitePartics } from "./sitePartics.entity"; import { Sites } from "./sites.entity"; -@ObjectType +@ObjectType() @Index("site_profiles_pkey", ["dateCompleted", "siteId"], { unique: true }) @Index("sprof_rwm_site_partic", ["rwmParticId"], {}) @Index("sprof_site_reg_site_partic", ["siteRegParticId"], {}) @Entity("site_profiles") export class SiteProfiles { - @Field + @Field() @Column("bigint", { primary: true, name: "site_id" }) siteId: string; - @Field + @Field() @Column("timestamp without time zone", { primary: true, name: "date_completed", }) dateCompleted: Date; - @Field + @Field() @Column("timestamp without time zone", { name: "local_auth_date_recd", nullable: true, }) localAuthDateRecd: Date | null; - @Field + @Field() @Column("character varying", { name: "local_auth_name", nullable: true, @@ -47,7 +47,7 @@ export class SiteProfiles { }) localAuthName: string | null; - @Field + @Field() @Column("character varying", { name: "local_auth_agency", nullable: true, @@ -55,7 +55,7 @@ export class SiteProfiles { }) localAuthAgency: string | null; - @Field + @Field() @Column("character varying", { name: "local_auth_address1", nullable: true, @@ -63,7 +63,7 @@ export class SiteProfiles { }) localAuthAddress1: string | null; - @Field + @Field() @Column("character varying", { name: "local_auth_address2", nullable: true, @@ -71,7 +71,7 @@ export class SiteProfiles { }) localAuthAddress2: string | null; - @Field + @Field() @Column("character varying", { name: "local_auth_phone_area_code", nullable: true, @@ -79,7 +79,7 @@ export class SiteProfiles { }) localAuthPhoneAreaCode: string | null; - @Field + @Field() @Column("character varying", { name: "local_auth_phone_no", nullable: true, @@ -87,7 +87,7 @@ export class SiteProfiles { }) localAuthPhoneNo: string | null; - @Field + @Field() @Column("character varying", { name: "local_auth_fax_area_code", nullable: true, @@ -95,7 +95,7 @@ export class SiteProfiles { }) localAuthFaxAreaCode: string | null; - @Field + @Field() @Column("character varying", { name: "local_auth_fax_no", nullable: true, @@ -103,32 +103,32 @@ export class SiteProfiles { }) localAuthFaxNo: string | null; - @Field + @Field() @Column("timestamp without time zone", { name: "local_auth_date_submitted", nullable: true, }) localAuthDateSubmitted: Date | null; - @Field + @Field() @Column("timestamp without time zone", { name: "local_auth_date_forwarded", nullable: true, }) localAuthDateForwarded: Date | null; - @Field + @Field() @Column("timestamp without time zone", { name: "rwm_date_received", nullable: true, }) rwmDateReceived: Date | null; - @Field + @Field() @Column("bigint", { name: "rwm_partic_id", nullable: true }) rwmParticId: string | null; - @Field + @Field() @Column("character varying", { name: "rwm_phone_area_code", nullable: true, @@ -136,7 +136,7 @@ export class SiteProfiles { }) rwmPhoneAreaCode: string | null; - @Field + @Field() @Column("character varying", { name: "rwm_phone_no", nullable: true, @@ -144,7 +144,7 @@ export class SiteProfiles { }) rwmPhoneNo: string | null; - @Field + @Field() @Column("character varying", { name: "rwm_fax_area_code", nullable: true, @@ -152,7 +152,7 @@ export class SiteProfiles { }) rwmFaxAreaCode: string | null; - @Field + @Field() @Column("character varying", { name: "rwm_fax_no", nullable: true, @@ -160,7 +160,7 @@ export class SiteProfiles { }) rwmFaxNo: string | null; - @Field + @Field() @Column("character", { name: "investigation_required", nullable: true, @@ -168,36 +168,36 @@ export class SiteProfiles { }) investigationRequired: string | null; - @Field + @Field() @Column("timestamp without time zone", { name: "rwm_date_decision", nullable: true, }) rwmDateDecision: Date | null; - @Field + @Field() @Column("timestamp without time zone", { name: "site_reg_date_recd", nullable: true, }) siteRegDateRecd: Date | null; - @Field + @Field() @Column("timestamp without time zone", { name: "site_reg_date_entered", nullable: true, }) siteRegDateEntered: Date | null; - @Field + @Field() @Column("bigint", { name: "site_reg_partic_id", nullable: true }) siteRegParticId: string | null; - @Field + @Field() @Column("bigint", { name: "owner_partic_id", nullable: true }) ownerParticId: string | null; - @Field + @Field() @Column("character varying", { name: "site_address", nullable: true, @@ -205,7 +205,7 @@ export class SiteProfiles { }) siteAddress: string | null; - @Field + @Field() @Column("character varying", { name: "site_city", nullable: true, @@ -213,7 +213,7 @@ export class SiteProfiles { }) siteCity: string | null; - @Field + @Field() @Column("character varying", { name: "site_postal_code", nullable: true, @@ -221,23 +221,23 @@ export class SiteProfiles { }) sitePostalCode: string | null; - @Field + @Field() @Column("smallint", { name: "number_of_pids", nullable: true }) numberOfPids: number | null; - @Field + @Field() @Column("smallint", { name: "number_of_pins", nullable: true }) numberOfPins: number | null; - @Field + @Field() @Column("smallint", { name: "lat_degrees", nullable: true }) latDegrees: number | null; - @Field + @Field() @Column("smallint", { name: "lat_minutes", nullable: true }) latMinutes: number | null; - @Field + @Field() @Column("numeric", { name: "lat_seconds", nullable: true, @@ -246,15 +246,15 @@ export class SiteProfiles { }) latSeconds: string | null; - @Field + @Field() @Column("smallint", { name: "long_degrees", nullable: true }) longDegrees: number | null; - @Field + @Field() @Column("smallint", { name: "long_minutes", nullable: true }) longMinutes: number | null; - @Field + @Field() @Column("numeric", { name: "long_seconds", nullable: true, @@ -263,7 +263,7 @@ export class SiteProfiles { }) longSeconds: string | null; - @Field + @Field() @Column("character varying", { name: "comments", nullable: true, @@ -271,11 +271,11 @@ export class SiteProfiles { }) comments: string | null; - @Field + @Field() @Column("character varying", { name: "who_created", length: 30 }) whoCreated: string; - @Field + @Field() @Column("character varying", { name: "who_updated", nullable: true, @@ -283,18 +283,18 @@ export class SiteProfiles { }) whoUpdated: string | null; - @Field + @Field() @Column("timestamp without time zone", { name: "when_created" }) whenCreated: Date; - @Field + @Field() @Column("timestamp without time zone", { name: "when_updated", nullable: true, }) whenUpdated: Date | null; - @Field + @Field() @Column("character varying", { name: "local_auth_email", nullable: true, @@ -302,7 +302,7 @@ export class SiteProfiles { }) localAuthEmail: string | null; - @Field + @Field() @Column("character varying", { name: "planned_activity_comment", nullable: true, @@ -310,7 +310,7 @@ export class SiteProfiles { }) plannedActivityComment: string | null; - @Field + @Field() @Column("character varying", { name: "site_disclosure_comment", nullable: true, @@ -318,7 +318,7 @@ export class SiteProfiles { }) siteDisclosureComment: string | null; - @Field + @Field() @Column("character varying", { name: "gov_documents_comment", nullable: true, diff --git a/backend/sites/src/app/entities/siteRegistry.entity.ts b/backend/sites/src/app/entities/siteRegistry.entity.ts index 60b4b9e8..99fd1997 100644 --- a/backend/sites/src/app/entities/siteRegistry.entity.ts +++ b/backend/sites/src/app/entities/siteRegistry.entity.ts @@ -1,21 +1,21 @@ import { Field, ObjectType } from '@nestjs/graphql'; import { Column, Entity, Index } from "typeorm"; -@ObjectType +@ObjectType() @Index("sitereg_bco", ["regFlag", "siteId"], {}) @Index("site_registry_pkey", ["siteId"], { unique: true }) @Entity("site_registry") export class SiteRegistry { - @Field + @Field() @Column("bigint", { primary: true, name: "site_id" }) siteId: string; - @Field + @Field() @Column("smallint", { name: "reg_flag", nullable: true }) regFlag: number | null; - @Field + @Field() @Column("character varying", { name: "reg_userid", nullable: true, @@ -23,21 +23,21 @@ export class SiteRegistry { }) regUserid: string | null; - @Field + @Field() @Column("timestamp without time zone", { name: "init_approval_date", nullable: true, }) initApprovalDate: Date | null; - @Field + @Field() @Column("timestamp without time zone", { name: "last_approval_date", nullable: true, }) lastApprovalDate: Date | null; - @Field + @Field() @Column("timestamp without time zone", { name: "tombstone_date", nullable: true, diff --git a/backend/sites/src/app/entities/siteRegistryModule.entity.ts b/backend/sites/src/app/entities/siteRegistryModule.entity.ts index b9ce700e..8349ce27 100644 --- a/backend/sites/src/app/entities/siteRegistryModule.entity.ts +++ b/backend/sites/src/app/entities/siteRegistryModule.entity.ts @@ -1,17 +1,17 @@ import { Field, ObjectType } from '@nestjs/graphql'; import { Column, Entity, PrimaryGeneratedColumn } from "typeorm"; -@ObjectType +@ObjectType() @Entity("site_registry_module") export class SiteRegistryModule { @PrimaryGeneratedColumn('uuid', { name: 'id' }) id: string; - @Field + @Field() @Column("character", { name: "sites", nullable: true, length: 1 }) sites: string | null; - @Field + @Field() @Column("character", { name: "site_location_description", nullable: true, @@ -19,51 +19,51 @@ export class SiteRegistryModule { }) siteLocationDescription: string | null; - @Field + @Field() @Column("character", { name: "site_partics", nullable: true, length: 1 }) sitePartics: string | null; - @Field + @Field() @Column("character", { name: "site_partic_notes", nullable: true, length: 1 }) siteParticNotes: string | null; - @Field + @Field() @Column("character", { name: "site_partic_roles", nullable: true, length: 1 }) siteParticRoles: string | null; - @Field + @Field() @Column("character", { name: "site_partic_dates", nullable: true, length: 1 }) siteParticDates: string | null; - @Field + @Field() @Column("character", { name: "notations", nullable: true, length: 1 }) notations: string | null; - @Field + @Field() @Column("character", { name: "notation_notes", nullable: true, length: 1 }) notationNotes: string | null; - @Field + @Field() @Column("character", { name: "notation_actions", nullable: true, length: 1 }) notationActions: string | null; - @Field + @Field() @Column("character", { name: "notation_partics", nullable: true, length: 1 }) notationPartics: string | null; - @Field + @Field() @Column("character", { name: "documents", nullable: true, length: 1 }) documents: string | null; - @Field + @Field() @Column("character", { name: "document_notes", nullable: true, length: 1 }) documentNotes: string | null; - @Field + @Field() @Column("character", { name: "document_partics", nullable: true, length: 1 }) documentPartics: string | null; - @Field + @Field() @Column("character", { name: "document_abstracts", nullable: true, @@ -71,7 +71,7 @@ export class SiteRegistryModule { }) documentAbstracts: string | null; - @Field + @Field() @Column("character", { name: "document_measure_pops", nullable: true, @@ -79,7 +79,7 @@ export class SiteRegistryModule { }) documentMeasurePops: string | null; - @Field + @Field() @Column("character", { name: "document_measure_details", nullable: true, @@ -87,23 +87,23 @@ export class SiteRegistryModule { }) documentMeasureDetails: string | null; - @Field + @Field() @Column("character", { name: "associations", nullable: true, length: 1 }) associations: string | null; - @Field + @Field() @Column("character", { name: "association_notes", nullable: true, length: 1 }) associationNotes: string | null; - @Field + @Field() @Column("character", { name: "association_dates", nullable: true, length: 1 }) associationDates: string | null; - @Field + @Field() @Column("character", { name: "suspect_land_uses", nullable: true, length: 1 }) suspectLandUses: string | null; - @Field + @Field() @Column("character", { name: "suspect_land_use_notes", nullable: true, @@ -111,11 +111,11 @@ export class SiteRegistryModule { }) suspectLandUseNotes: string | null; - @Field + @Field() @Column("character", { name: "aec_assessments", nullable: true, length: 1 }) aecAssessments: string | null; - @Field + @Field() @Column("character", { name: "aec_assessment_mig_potential", nullable: true, @@ -123,7 +123,7 @@ export class SiteRegistryModule { }) aecAssessmentMigPotential: string | null; - @Field + @Field() @Column("character", { name: "aec_assessment_sources", nullable: true, @@ -131,7 +131,7 @@ export class SiteRegistryModule { }) aecAssessmentSources: string | null; - @Field + @Field() @Column("character", { name: "aec_assessment_medias", nullable: true, @@ -139,7 +139,7 @@ export class SiteRegistryModule { }) aecAssessmentMedias: string | null; - @Field + @Field() @Column("character", { name: "aec_assessment_media_notes", nullable: true, @@ -147,7 +147,7 @@ export class SiteRegistryModule { }) aecAssessmentMediaNotes: string | null; - @Field + @Field() @Column("character", { name: "aec_assessment_pcocs", nullable: true, @@ -155,11 +155,11 @@ export class SiteRegistryModule { }) aecAssessmentPcocs: string | null; - @Field + @Field() @Column("character", { name: "aec_remed_plans", nullable: true, length: 1 }) aecRemedPlans: string | null; - @Field + @Field() @Column("character", { name: "aec_remed_plan_notes", nullable: true, @@ -167,7 +167,7 @@ export class SiteRegistryModule { }) aecRemedPlanNotes: string | null; - @Field + @Field() @Column("character", { name: "aec_remed_plan_items", nullable: true, @@ -175,7 +175,7 @@ export class SiteRegistryModule { }) aecRemedPlanItems: string | null; - @Field + @Field() @Column("character", { name: "aec_remed_plan_item_measures", nullable: true, @@ -183,7 +183,7 @@ export class SiteRegistryModule { }) aecRemedPlanItemMeasures: string | null; - @Field + @Field() @Column("character", { name: "aec_remed_approaches", nullable: true, diff --git a/backend/sites/src/app/entities/siteRiskCd.entity.ts b/backend/sites/src/app/entities/siteRiskCd.entity.ts index 313be977..84091bcf 100644 --- a/backend/sites/src/app/entities/siteRiskCd.entity.ts +++ b/backend/sites/src/app/entities/siteRiskCd.entity.ts @@ -2,15 +2,15 @@ import { Field, ObjectType } from '@nestjs/graphql'; import { Column, Entity, Index, OneToMany } from "typeorm"; import { Sites } from "./sites.entity"; -@ObjectType +@ObjectType() @Index("site_risk_cd_pkey", ["code"], { unique: true }) @Entity("site_risk_cd") export class SiteRiskCd { - @Field + @Field() @Column("character varying", { primary: true, name: "code", length: 6 }) code: string; - @Field + @Field() @Column("character varying", { name: "description", length: 40 }) description: string; diff --git a/backend/sites/src/app/entities/siteStaffs.entity.ts b/backend/sites/src/app/entities/siteStaffs.entity.ts index 49b80bdc..b6436b4f 100644 --- a/backend/sites/src/app/entities/siteStaffs.entity.ts +++ b/backend/sites/src/app/entities/siteStaffs.entity.ts @@ -2,7 +2,7 @@ import { Field, ObjectType } from '@nestjs/graphql'; import { Column, Entity, Index, JoinColumn, ManyToOne } from "typeorm"; import { PeopleOrgs } from "./peopleOrgs.entity"; -@ObjectType +@ObjectType() @Index("site_staffs_pkey", ["id"], { unique: true }) @Index("site_staff_employed_as_frgn", ["psnorgId"], {}) @Index("site_staffs_psnorg_id_start_date_key", ["psnorgId", "startDate"], { @@ -11,23 +11,23 @@ import { PeopleOrgs } from "./peopleOrgs.entity"; @Entity("site_staffs") export class SiteStaffs { - @Field + @Field() @Column("bigint", { primary: true, name: "id" }) id: string; - @Field + @Field() @Column("bigint", { name: "psnorg_id", unique: true }) psnorgId: string; - @Field + @Field() @Column("character varying", { name: "emp_num", nullable: true, length: 10 }) empNum: string | null; - @Field + @Field() @Column("character varying", { name: "user_id", length: 16 }) userId: string; - @Field + @Field() @Column("character varying", { name: "e_mail_addr", nullable: true, @@ -35,7 +35,7 @@ export class SiteStaffs { }) eMailAddr: string | null; - @Field + @Field() @Column("character varying", { name: "stftype_code", nullable: true, @@ -43,11 +43,11 @@ export class SiteStaffs { }) stftypeCode: string | null; - @Field + @Field() @Column("character varying", { name: "prt_name", length: 15 }) prtName: string; - @Field + @Field() @Column("character varying", { name: "display_name", nullable: true, @@ -55,7 +55,7 @@ export class SiteStaffs { }) displayName: string | null; - @Field + @Field() @Column("character varying", { name: "region_code", nullable: true, @@ -63,26 +63,26 @@ export class SiteStaffs { }) regionCode: string | null; - @Field + @Field() @Column("timestamp without time zone", { name: "start_date", unique: true }) startDate: Date; - @Field + @Field() @Column("timestamp without time zone", { name: "termination_date", nullable: true, }) terminationDate: Date | null; - @Field + @Field() @Column("character varying", { name: "staff_role", length: 12 }) staffRole: string; - @Field + @Field() @Column("character varying", { name: "who_created", length: 30 }) whoCreated: string; - @Field + @Field() @Column("character varying", { name: "who_updated", nullable: true, @@ -90,18 +90,18 @@ export class SiteStaffs { }) whoUpdated: string | null; - @Field + @Field() @Column("timestamp without time zone", { name: "when_created" }) whenCreated: Date; - @Field + @Field() @Column("timestamp without time zone", { name: "when_updated", nullable: true, }) whenUpdated: Date | null; - @Field + @Field() @Column("character varying", { name: "last_name", nullable: true, @@ -109,7 +109,7 @@ export class SiteStaffs { }) lastName: string | null; - @Field + @Field() @Column("character varying", { name: "first_name", nullable: true, diff --git a/backend/sites/src/app/entities/siteStatusCd.entity.ts b/backend/sites/src/app/entities/siteStatusCd.entity.ts index 72f68e8e..e671ef14 100644 --- a/backend/sites/src/app/entities/siteStatusCd.entity.ts +++ b/backend/sites/src/app/entities/siteStatusCd.entity.ts @@ -3,16 +3,16 @@ import { Column, Entity, Index, OneToMany } from "typeorm"; import { EventTypeCd } from "./eventTypeCd.entity"; import { Sites } from "./sites.entity"; -@ObjectType +@ObjectType() @Index("site_status_cd_pkey", ["code"], { unique: true }) @Entity("site_status_cd") export class SiteStatusCd { - @Field + @Field() @Column("character varying", { primary: true, name: "code", length: 6 }) code: string; - @Field + @Field() @Column("character varying", { name: "description", length: 120 }) description: string; diff --git a/backend/sites/src/app/entities/siteSubdivisions.entity.ts b/backend/sites/src/app/entities/siteSubdivisions.entity.ts index fae2e264..c05e0b42 100644 --- a/backend/sites/src/app/entities/siteSubdivisions.entity.ts +++ b/backend/sites/src/app/entities/siteSubdivisions.entity.ts @@ -2,7 +2,7 @@ import { Field, ObjectType } from '@nestjs/graphql'; import { Column, Entity, Index, JoinColumn, ManyToOne } from "typeorm"; import { Sites } from "./sites.entity"; -@ObjectType +@ObjectType() @Index( "site_subdivisions_site_id_subdiv_id_sprof_date_completed_key", ["siteId", "sprofDateCompleted", "subdivId"], @@ -15,27 +15,27 @@ import { Sites } from "./sites.entity"; @Entity("site_subdivisions") export class SiteSubdivisions { - @Field + @Field() @Column("bigint", { name: "site_id", unique: true }) siteId: string; - @Field + @Field() @Column("bigint", { name: "subdiv_id", unique: true }) subdivId: string; - @Field + @Field() @Column("timestamp without time zone", { name: "date_noted" }) dateNoted: Date; - @Field + @Field() @Column("character varying", { name: "initial_indicator", length: 1 }) initialIndicator: string; - @Field + @Field() @Column("character varying", { name: "who_created", length: 30 }) whoCreated: string; - @Field + @Field() @Column("character varying", { name: "who_updated", nullable: true, @@ -43,18 +43,18 @@ export class SiteSubdivisions { }) whoUpdated: string | null; - @Field + @Field() @Column("timestamp without time zone", { name: "when_created" }) whenCreated: Date; - @Field + @Field() @Column("timestamp without time zone", { name: "when_updated", nullable: true, }) whenUpdated: Date | null; - @Field + @Field() @Column("timestamp without time zone", { name: "sprof_date_completed", nullable: true, @@ -62,11 +62,11 @@ export class SiteSubdivisions { }) sprofDateCompleted: Date | null; - @Field + @Field() @Column("bigint", { primary: true, name: "site_subdiv_id" }) siteSubdivId: string; - @Field + @Field() @Column("character varying", { name: "send_to_sr", length: 1 }) sendToSr: string; diff --git a/backend/sites/src/app/entities/sourceCd.entity.ts b/backend/sites/src/app/entities/sourceCd.entity.ts index 57952809..d4aef505 100644 --- a/backend/sites/src/app/entities/sourceCd.entity.ts +++ b/backend/sites/src/app/entities/sourceCd.entity.ts @@ -2,11 +2,11 @@ import { Field, ObjectType } from '@nestjs/graphql'; import { Column, Entity, Index, OneToMany } from "typeorm"; import { AecSources } from "./aecSources.entity"; -@ObjectType +@ObjectType() @Index("source_cd_pkey", ["code"], { unique: true }) @Entity("source_cd") export class SourceCd { - @Field + @Field() @Column("character varying", { primary: true, name: "code", length: 80 }) code: string; diff --git a/backend/sites/src/app/entities/spatialRefSys.entity.ts b/backend/sites/src/app/entities/spatialRefSys.entity.ts index 74c28312..aee26ae7 100644 --- a/backend/sites/src/app/entities/spatialRefSys.entity.ts +++ b/backend/sites/src/app/entities/spatialRefSys.entity.ts @@ -1,15 +1,15 @@ import { Field, ObjectType } from '@nestjs/graphql'; import { Column, Entity, Index } from "typeorm"; -@ObjectType +@ObjectType() @Index("spatial_ref_sys_pkey", ["srid"], { unique: true }) @Entity("spatial_ref_sys") export class SpatialRefSys { - @Field + @Field() @Column("integer", { primary: true, name: "srid" }) srid: number; - @Field + @Field() @Column("character varying", { name: "auth_name", nullable: true, @@ -17,15 +17,15 @@ export class SpatialRefSys { }) authName: string | null; - @Field + @Field() @Column("integer", { name: "auth_srid", nullable: true }) authSrid: number | null; - @Field + @Field() @Column("character varying", { name: "srtext", nullable: true, length: 2048 }) srtext: string | null; - @Field + @Field() @Column("character varying", { name: "proj4text", nullable: true, diff --git a/backend/sites/src/app/entities/subdivisions.entity.ts b/backend/sites/src/app/entities/subdivisions.entity.ts index b07ba7f8..b01670c8 100644 --- a/backend/sites/src/app/entities/subdivisions.entity.ts +++ b/backend/sites/src/app/entities/subdivisions.entity.ts @@ -1,20 +1,20 @@ import { Field, ObjectType } from '@nestjs/graphql'; import { Column, Entity, Index } from "typeorm"; -@ObjectType +@ObjectType() @Index("subdivisions_pkey", ["id"], { unique: true }) @Index("subdivisions_pid_pin_key", ["pid", "pin"], { unique: true }) @Entity("subdivisions") export class Subdivisions { - @Field + @Field() @Column("bigint", { primary: true, name: "id" }) id: string; - @Field + @Field() @Column("timestamp without time zone", { name: "date_noted" }) dateNoted: Date; - @Field + @Field() @Column("character varying", { name: "pin", nullable: true, @@ -23,7 +23,7 @@ export class Subdivisions { }) pin: string | null; - @Field + @Field() @Column("character varying", { name: "pid", nullable: true, @@ -32,7 +32,7 @@ export class Subdivisions { }) pid: string | null; - @Field + @Field() @Column("character varying", { name: "bcaa_folio_number", nullable: true, @@ -40,7 +40,7 @@ export class Subdivisions { }) bcaaFolioNumber: string | null; - @Field + @Field() @Column("character varying", { name: "entity_type", nullable: true, @@ -48,7 +48,7 @@ export class Subdivisions { }) entityType: string | null; - @Field + @Field() @Column("character varying", { name: "addr_line_1", nullable: true, @@ -56,7 +56,7 @@ export class Subdivisions { }) addrLine_1: string | null; - @Field + @Field() @Column("character varying", { name: "addr_line_2", nullable: true, @@ -64,7 +64,7 @@ export class Subdivisions { }) addrLine_2: string | null; - @Field + @Field() @Column("character varying", { name: "addr_line_3", nullable: true, @@ -72,7 +72,7 @@ export class Subdivisions { }) addrLine_3: string | null; - @Field + @Field() @Column("character varying", { name: "addr_line_4", nullable: true, @@ -80,11 +80,11 @@ export class Subdivisions { }) addrLine_4: string | null; - @Field + @Field() @Column("character varying", { name: "city", nullable: true, length: 30 }) city: string | null; - @Field + @Field() @Column("character varying", { name: "postal_code", nullable: true, @@ -92,7 +92,7 @@ export class Subdivisions { }) postalCode: string | null; - @Field + @Field() @Column("character varying", { name: "legal_description", nullable: true, @@ -100,11 +100,11 @@ export class Subdivisions { }) legalDescription: string | null; - @Field + @Field() @Column("character varying", { name: "who_created", length: 30 }) whoCreated: string; - @Field + @Field() @Column("character varying", { name: "who_updated", nullable: true, @@ -112,18 +112,18 @@ export class Subdivisions { }) whoUpdated: string | null; - @Field + @Field() @Column("timestamp without time zone", { name: "when_created" }) whenCreated: Date; - @Field + @Field() @Column("timestamp without time zone", { name: "when_updated", nullable: true, }) whenUpdated: Date | null; - @Field + @Field() @Column("character varying", { name: "crown_lands_file_no", nullable: true, @@ -131,11 +131,11 @@ export class Subdivisions { }) crownLandsFileNo: string | null; - @Field + @Field() @Column("character varying", { name: "pid_status_cd", length: 1 }) pidStatusCd: string; - @Field + @Field() @Column("character", { name: "valid_pid", nullable: true, length: 1 }) validPid: string | null; } diff --git a/backend/sites/src/app/entities/submissionCd.entity.ts b/backend/sites/src/app/entities/submissionCd.entity.ts index abd29482..79f10ab2 100644 --- a/backend/sites/src/app/entities/submissionCd.entity.ts +++ b/backend/sites/src/app/entities/submissionCd.entity.ts @@ -2,19 +2,19 @@ import { Field, ObjectType } from '@nestjs/graphql'; import { Column, Entity, Index, OneToMany } from "typeorm"; import { ProfileSubmissions } from "./profileSubmissions.entity"; -@ObjectType +@ObjectType() @Index("submission_cd_pkey", ["code"], { unique: true }) @Entity("submission_cd") export class SubmissionCd { - @Field + @Field() @Column("character varying", { primary: true, name: "code", length: 6 }) code: string; - @Field + @Field() @Column("character varying", { name: "description", length: 40 }) description: string; - @Field + @Field() @Column("character varying", { name: "used_in", length: 4 }) usedIn: string;