Skip to content

Commit

Permalink
Added Graphql tags with minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspalsingh-aot committed Mar 25, 2024
1 parent 7035135 commit 1785180
Show file tree
Hide file tree
Showing 22 changed files with 268 additions and 268 deletions.
48 changes: 24 additions & 24 deletions backend/sites/src/app/entities/sisAddresses.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,151 +2,151 @@ 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,
length: 3,
})
busAreaCode: string | null;

@Field
@Field()
@Column("character varying", {
name: "bus_phone_no",
nullable: true,
length: 7,
})
busPhoneNo: string | null;

@Field
@Field()
@Column("character varying", {
name: "fax_area_code",
nullable: true,
length: 3,
})
faxAreaCode: string | null;

@Field
@Field()
@Column("character varying", {
name: "fax_phone_no",
nullable: true,
length: 7,
})
faxPhoneNo: string | null;

@Field
@Field()
@Column("character varying", {
name: "home_area_code",
nullable: true,
length: 3,
})
homeAreaCode: string | null;

@Field
@Field()
@Column("character varying", {
name: "home_phone_no",
nullable: true,
length: 7,
})
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,
length: 50,
})
addrLine_2: string | null;

@Field
@Field()
@Column("character varying", {
name: "addr_line_3",
nullable: true,
length: 50,
})
addrLine_3: string | null;

@Field
@Field()
@Column("character varying", {
name: "addr_line_4",
nullable: true,
length: 50,
})
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,
length: 10,
})
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,
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,
Expand Down
24 changes: 12 additions & 12 deletions backend/sites/src/app/entities/siteAssocs.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"], {})
Expand All @@ -11,54 +11,54 @@ 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,
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;

@Field
@Field()
@Column("character varying", { name: "common_pid", length: 1 })
commonPid: string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -12,35 +12,35 @@ 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",
length: 6,
})
contaminationClassCode: string;

@Field
@Field()
@Column("character varying", { name: "who_created", length: 30 })
whoCreated: string;

@Field
@Field()
@Column("character varying", {
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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Loading

0 comments on commit 1785180

Please sign in to comment.