20 lines
551 B
TypeScript
20 lines
551 B
TypeScript
import { Column, Entity, PrimaryColumn } from 'typeorm';
|
|
|
|
@Entity({ name: 'asset_attribute_values' })
|
|
export class AssetAttributeValue {
|
|
@PrimaryColumn({ name: 'asset_id', type: 'uuid' })
|
|
assetId!: string;
|
|
|
|
@PrimaryColumn({ name: 'definition_id', type: 'uuid' })
|
|
definitionId!: string;
|
|
|
|
@Column({ type: 'jsonb' })
|
|
value!: unknown;
|
|
|
|
@Column({ name: 'updated_at', type: 'timestamptz', default: () => 'CURRENT_TIMESTAMP' })
|
|
updatedAt!: Date;
|
|
|
|
@Column({ name: 'updated_by', type: 'uuid', nullable: true })
|
|
updatedBy!: string | null;
|
|
}
|