chore: remove sqlite

This commit is contained in:
vben
2024-06-30 22:28:35 +08:00
parent 9572d1a1c5
commit 692225cfff
18 changed files with 139 additions and 663 deletions

View File

@@ -1,33 +1,20 @@
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
@Entity()
class UserEntity {
@PrimaryGeneratedColumn()
id: number;
/**
* 密码
*/
@Column()
password: string;
/**
* 真实姓名
*/
@Column()
realName: string;
/**
* 角色
*/
@Column('text', {
transformer: {
from: (value: string) => JSON.parse(value),
to: (value: string[]) => JSON.stringify(value),
},
})
roles: string[];
/**
* 用户名
*/
@Column({ unique: true })
username: string;
}