Move software files one directory up, Readme
This commit is contained in:
22
backend/models/user/accountRole.model.ts
Normal file
22
backend/models/user/accountRole.model.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { Column, HasMany, Model, Table } from "sequelize-typescript";
|
||||
import { Account } from "./account.model";
|
||||
|
||||
@Table({ timestamps: false })
|
||||
export class AccountRole extends Model {
|
||||
@Column
|
||||
name: string
|
||||
|
||||
@Column
|
||||
privilegeBuy: boolean
|
||||
|
||||
@Column
|
||||
privilegeAdminPanel: boolean
|
||||
|
||||
@Column
|
||||
privilegeFileAccess: boolean
|
||||
|
||||
|
||||
// Relations
|
||||
@HasMany(() => Account)
|
||||
accounts: Account[]
|
||||
}
|
||||
Reference in New Issue
Block a user