update
This commit is contained in:
@ -1,49 +0,0 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, Index, JoinColumn, ManyToOne } from "typeorm";
|
|
||||||
import { Status } from "../types/status";
|
|
||||||
import { TrxLanguage } from "./trx_languages";
|
|
||||||
|
|
||||||
@Entity("trx_config_maritals", { schema: "trx" })
|
|
||||||
export class TrxConfigMarital {
|
|
||||||
@PrimaryGeneratedColumn("uuid")
|
|
||||||
id: string;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: true,
|
|
||||||
length: 256,
|
|
||||||
})
|
|
||||||
name: string;
|
|
||||||
|
|
||||||
@Column({ type: "smallint", default: 0 })
|
|
||||||
level: Number;
|
|
||||||
|
|
||||||
@ManyToOne(() => TrxLanguage, { onDelete: "RESTRICT", nullable: true })
|
|
||||||
@JoinColumn()
|
|
||||||
language: TrxLanguage;
|
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: false,
|
|
||||||
length: 64,
|
|
||||||
})
|
|
||||||
status: Status;
|
|
||||||
|
|
||||||
@Column()
|
|
||||||
@CreateDateColumn()
|
|
||||||
created_at: Date;
|
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256 })
|
|
||||||
created_by: string;
|
|
||||||
|
|
||||||
@Column({ nullable: true })
|
|
||||||
@UpdateDateColumn()
|
|
||||||
updated_at: Date;
|
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256 })
|
|
||||||
updated_by: string;
|
|
||||||
|
|
||||||
@Column({ nullable: true })
|
|
||||||
@DeleteDateColumn()
|
|
||||||
deleted_at: Date;
|
|
||||||
|
|
||||||
@Column({ nullable: true, length: 256 })
|
|
||||||
deleted_by: string;
|
|
||||||
}
|
|
||||||
@ -11,7 +11,6 @@ export * from "../entity/trx_config_business_fields";
|
|||||||
export * from "../entity/trx_config_channels";
|
export * from "../entity/trx_config_channels";
|
||||||
export * from "../entity/trx_config_educations";
|
export * from "../entity/trx_config_educations";
|
||||||
export * from "../entity/trx_config_identity_types";
|
export * from "../entity/trx_config_identity_types";
|
||||||
export * from "../entity/trx_config_maritals";
|
|
||||||
export * from "../entity/trx_config_munisipos";
|
export * from "../entity/trx_config_munisipos";
|
||||||
export * from "../entity/trx_config_nationalities";
|
export * from "../entity/trx_config_nationalities";
|
||||||
export * from "../entity/trx_config_occupations";
|
export * from "../entity/trx_config_occupations";
|
||||||
|
|||||||
Reference in New Issue
Block a user