Commit 0d672356 authored by Yavor Grancharov's avatar Yavor Grancharov
Browse files

feat: add location notes field to database

parent 02a659d6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -31,6 +31,10 @@ class GeoLocation extends DBObject<IGeoLocation, IGeoLocationCreateObject>
	@Column()
	postcode?: string | null;

	@Schema({ required: false, type: String })
	@Column()
	notes?: string | null;

	@Schema({ type: String, required: false })
	@Column()
	apartment?: string | null;
+1 −0
Original line number Diff line number Diff line
@@ -116,6 +116,7 @@ class InviteRequest
				streetAddress: this.geoLocation.streetAddress,
				city: this.geoLocation.city,
				postcode: this.geoLocation.postcode,
				notes: this.geoLocation.notes,
				countryId: this.geoLocation.countryId,
			};
		} else {
+2 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ interface IEnterByLocation {
	streetAddress: string;
	house: string;
	postcode?: string | null;
	notes?: string | null;
	apartment: string;
}

@@ -21,6 +22,7 @@ export function toEnterByLocation(
		city: location.city,
		countryId: location.countryId,
		postcode: location.postcode,
		notes: location.notes,
	} as any;
}

+3 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ export interface IAddress {
	countryId: Country | null;
	city: string | null;
	postcode?: string | null;
	notes?: string | null;
	streetAddress: string | null;
	house: string | null;
}
@@ -19,6 +20,7 @@ export function getEmptyAddress(): IAddress {
		countryId: null,
		city: '',
		postcode: '',
		notes: '',
		streetAddress: '',
		house: '',
	};
@@ -32,6 +34,7 @@ export interface IGeolocationUpdateObject {
	countryId?: Country | null;
	city?: string | null;
	postcode?: string | null;
	notes?: string | null;
	streetAddress?: string | null;
	house?: string | null;
	loc?: ILocation;
+4 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ type GeoLocation {
	streetAddress: String!
	house: String!
	postcode: String
	notes: String
	loc: Loc!
	coordinates: GeoLocationCoordinates!
}
@@ -43,6 +44,7 @@ input GeoLocationCreateInput {
	streetAddress: String!
	house: String!
	postcode: String
	notes: String
	loc: LocInput!
}

@@ -52,6 +54,7 @@ input GeoLocationUpdateInput {
	streetAddress: String
	house: String
	postcode: String
	notes: String
	loc: LocInput
}

@@ -61,6 +64,7 @@ input GeoLocationFindInput {
	streetAddress: String
	house: String
	postcode: String
	notes: String
	loc: LocInput
}

Loading