import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn } from 'typeorm';

@Entity('member_config')
export class MemberConfig {
  @PrimaryGeneratedColumn()
  config_id: number;

  @Column({ type: 'int', default: 0, comment: '站点ID' })
  site_id: number;

  @Column({ type: 'varchar', length: 100, comment: '配置键' })
  config_key: string;

  @Column({ type: 'text', comment: '配置值' })
  config_value: string;

  @Column({ type: 'varchar', length: 255, comment: '配置描述' })
  config_description: string;

  @Column({ type: 'varchar', length: 50, comment: '配置类型' })
  config_type: string;

  @Column({ type: 'int', default: 0, comment: '排序' })
  sort: number;

  @Column({ type: 'tinyint', default: 1, comment: '状态 1:启用 0:禁用' })
  status: number;

  @Column({ type: 'tinyint', default: 0, comment: '是否删除 0:否 1:是' })
  is_del: number;

  @CreateDateColumn({ comment: '创建时间' })
  create_time: Date;

  @UpdateDateColumn({ comment: '更新时间' })
  update_time: Date;
} 