34 lines
692 B
TypeScript
34 lines
692 B
TypeScript
|
|
import { ApiProperty } from '@midwayjs/swagger';
|
|
import { Entity, CreateDateColumn, UpdateDateColumn, PrimaryGeneratedColumn, Column } from 'typeorm';
|
|
|
|
@Entity('logistics_alias')
|
|
export class logisticsAlias {
|
|
@PrimaryGeneratedColumn()
|
|
id: number;
|
|
|
|
@ApiProperty({ type: 'string' })
|
|
@Column()
|
|
logistics_company: string
|
|
|
|
@ApiProperty({ type: 'string' })
|
|
@Column()
|
|
logistics_alias: string
|
|
|
|
@ApiProperty({ type: 'string' })
|
|
@Column()
|
|
platform: string
|
|
|
|
|
|
// 是否可删除
|
|
@Column({ default: true, comment: '是否可删除' })
|
|
deletable: boolean;
|
|
// 创建时间
|
|
@CreateDateColumn()
|
|
createdAt: Date;
|
|
|
|
// 更新时间
|
|
@UpdateDateColumn()
|
|
updatedAt: Date;
|
|
|
|
} |