2026-07-05 01:14:48 +08:00
|
|
|
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
|
2024-10-03 22:03:49 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*/
|
2026-07-05 01:14:48 +08:00
|
|
|
@Entity("sys_settings")
|
2024-10-03 22:03:49 +08:00
|
|
|
export class SysSettingsEntity {
|
|
|
|
|
@PrimaryGeneratedColumn()
|
|
|
|
|
id: number;
|
2026-07-05 01:14:48 +08:00
|
|
|
@Column({ comment: "key", length: 100 })
|
2024-10-03 22:03:49 +08:00
|
|
|
key: string;
|
2026-07-05 01:14:48 +08:00
|
|
|
@Column({ comment: "名称", length: 100 })
|
2024-10-03 22:03:49 +08:00
|
|
|
title: string;
|
|
|
|
|
|
2026-07-05 01:14:48 +08:00
|
|
|
@Column({ name: "setting", comment: "设置", length: 1024, nullable: true })
|
2024-10-03 22:03:49 +08:00
|
|
|
setting: string;
|
|
|
|
|
|
|
|
|
|
// public 公开读,私有写, private 私有读,私有写
|
2026-07-05 01:14:48 +08:00
|
|
|
@Column({ name: "access", comment: "访问权限" })
|
2024-10-03 22:03:49 +08:00
|
|
|
access: string;
|
|
|
|
|
|
|
|
|
|
@Column({
|
2026-07-05 01:14:48 +08:00
|
|
|
name: "create_time",
|
|
|
|
|
comment: "创建时间",
|
|
|
|
|
default: () => "CURRENT_TIMESTAMP",
|
2024-10-03 22:03:49 +08:00
|
|
|
})
|
|
|
|
|
createTime: Date;
|
|
|
|
|
@Column({
|
2026-07-05 01:14:48 +08:00
|
|
|
name: "update_time",
|
|
|
|
|
comment: "修改时间",
|
|
|
|
|
default: () => "CURRENT_TIMESTAMP",
|
2024-10-03 22:03:49 +08:00
|
|
|
})
|
|
|
|
|
updateTime: Date;
|
|
|
|
|
}
|