Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x | import {
Column,
CreateDateColumn,
Entity,
Index,
PrimaryGeneratedColumn,
UpdateDateColumn,
} from 'typeorm';
@Entity('properties')
export class Property {
@PrimaryGeneratedColumn('uuid')
id!: string;
@Column({ length: 120 })
name!: string;
@Column({ name: 'address_line1', length: 200 })
addressLine1!: string;
@Index()
@Column({ length: 100 })
city!: string;
@Column({ length: 20 })
postcode!: string;
// Notification recipient for events concerning this property.
@Column({ name: 'manager_email', length: 254 })
managerEmail!: string;
@CreateDateColumn({ name: 'created_at', type: 'timestamptz' })
createdAt!: Date;
@UpdateDateColumn({ name: 'updated_at', type: 'timestamptz' })
updatedAt!: Date;
}
|