feat(permissions): Adds server permissions
This commit is contained in:
parent
d46bbd84c5
commit
cf9c88a2d6
24 changed files with 415 additions and 69 deletions
37
source/Database/tables/ServerConfiguration.ts
Normal file
37
source/Database/tables/ServerConfiguration.ts
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
import {DatabaseDefinition} from "../DatabaseDefinition";
|
||||
|
||||
export type DBServerConfiguration = {
|
||||
id: number;
|
||||
serverid: string;
|
||||
key: string,
|
||||
value: string
|
||||
}
|
||||
|
||||
const dbDefinition: DatabaseDefinition = {
|
||||
name: "serverConfiguration",
|
||||
columns: [
|
||||
{
|
||||
name: "id",
|
||||
type: "INTEGER",
|
||||
autoIncrement: true,
|
||||
primaryKey: true,
|
||||
},
|
||||
{
|
||||
name: "serverid",
|
||||
type: "VARCHAR",
|
||||
size: 32
|
||||
},
|
||||
{
|
||||
name: "key",
|
||||
type: "VARCHAR",
|
||||
size: 32
|
||||
},
|
||||
{
|
||||
name: "value",
|
||||
type: "VARCHAR",
|
||||
size: 2 ^ 11
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export default dbDefinition;
|
||||
Loading…
Add table
Add a link
Reference in a new issue