You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
527 B
TypeScript
18 lines
527 B
TypeScript
import {Table, Column, Model, NotNull} from "sequelize-typescript";
|
|
import {JSON as SQJSON} from "sequelize";
|
|
import {GuildSettings} from "../GuildSettings";
|
|
import {DefaultConfig} from "../utils/DefaultConfig";
|
|
|
|
@Table({underscored: true})
|
|
export class Guild extends Model<Guild> {
|
|
|
|
@NotNull
|
|
@Column({allowNull: false})
|
|
public guildId: string;
|
|
|
|
@NotNull
|
|
// @ts-ignore
|
|
@Column({allowNull: false, type: SQJSON, defaultValue: new GuildSettings(new DefaultConfig())})
|
|
public settings: GuildSettings;
|
|
}
|