Files
wwjcloud-nest-v1/wwjcloud/src/common/site/entities/SiteAccount.ts
2025-09-11 22:06:19 +08:00

36 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
import { BaseEntity } from '../../../core/base/BaseEntity';
/**
* 站点账户实体
* 对应数据库表: site_account
*/
@Entity('site_account')
export class SiteAccount extends BaseEntity {
@PrimaryGeneratedColumn({ name: 'id' })
id: number;
@Column({ name: 'account_name', type: 'varchar', length: 255, comment: '账户名称' })
account_name: string;
@Column({ name: 'account_number', type: 'varchar', length: 255, comment: '账户号码' })
account_number: string;
@Column({ name: 'bank_name', type: 'varchar', length: 255, comment: '银行名称' })
bank_name: string;
@Column({ name: 'bank_code', type: 'varchar', length: 50, comment: '银行代码' })
bank_code: string;
@Column({ name: 'account_type', type: 'varchar', length: 50, default: 'bank', comment: '账户类型' })
account_type: string;
@Column({ name: 'status', type: 'tinyint', default: 1, comment: '状态0禁用1启用' })
status: number;
@Column({ name: 'remark', type: 'text', nullable: true, comment: '备注' })
remark: string;
@Column({ name: 'is_default', type: 'tinyint', default: 0, comment: '是否默认账户' })
is_default: number;
}