Initial commit — Southwest Roleplay FiveM
This commit is contained in:
15
src/server/entities/company-uniform.entity.ts
Normal file
15
src/server/entities/company-uniform.entity.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Column, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn } from 'typeorm';
|
||||
import { CompanyEntity } from './company.entity';
|
||||
|
||||
@Entity('company_uniforms')
|
||||
export class CompanyUniformEntity {
|
||||
@PrimaryGeneratedColumn() id: number;
|
||||
@Column() company_id: number;
|
||||
@Column({ type: 'int', nullable: true }) position_id: number | null;
|
||||
@Column({ type: 'varchar', length: 32 }) name: string;
|
||||
@Column({ type: 'json' }) clothing_items: number[];
|
||||
|
||||
@ManyToOne(() => CompanyEntity, (company) => company.uniforms)
|
||||
@JoinColumn({ name: 'company_id' })
|
||||
company: CompanyEntity;
|
||||
}
|
||||
Reference in New Issue
Block a user