2020-05-28 18:30:21 +00:00
|
|
|
import { Model } from '../../scripts/load-database'
|
2017-08-02 21:24:01 +00:00
|
|
|
|
2020-12-13 14:36:07 +00:00
|
|
|
export class User extends Model {
|
2017-08-02 21:24:01 +00:00
|
|
|
static get tableName () {
|
|
|
|
return 'users'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-13 14:36:07 +00:00
|
|
|
export class External extends Model {
|
2017-08-02 21:24:01 +00:00
|
|
|
static get tableName () {
|
|
|
|
return 'external'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-13 14:36:07 +00:00
|
|
|
export class Token extends Model {
|
2017-08-02 21:24:01 +00:00
|
|
|
static get tableName () {
|
|
|
|
return 'simple_token'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-13 14:36:07 +00:00
|
|
|
export class OAuth2Client extends Model {
|
2017-08-02 21:24:01 +00:00
|
|
|
static get tableName () {
|
|
|
|
return 'oauth2_client'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-13 14:36:07 +00:00
|
|
|
export class OAuth2AuthorizedClient extends Model {
|
2017-08-02 21:24:01 +00:00
|
|
|
static get tableName () {
|
|
|
|
return 'oauth2_client_authorization'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-13 14:36:07 +00:00
|
|
|
export class OAuth2Code extends Model {
|
2017-08-02 21:24:01 +00:00
|
|
|
static get tableName () {
|
2017-08-23 20:13:45 +00:00
|
|
|
return 'oauth2_code'
|
2017-08-02 21:24:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-13 14:36:07 +00:00
|
|
|
export class OAuth2AccessToken extends Model {
|
2017-08-02 21:24:01 +00:00
|
|
|
static get tableName () {
|
|
|
|
return 'oauth2_access_token'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-13 14:36:07 +00:00
|
|
|
export class OAuth2RefreshToken extends Model {
|
2017-08-02 21:24:01 +00:00
|
|
|
static get tableName () {
|
|
|
|
return 'oauth2_refresh_token'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-13 14:36:07 +00:00
|
|
|
export class TotpToken extends Model {
|
2017-08-02 21:24:01 +00:00
|
|
|
static get tableName () {
|
|
|
|
return 'totp_token'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-13 14:36:07 +00:00
|
|
|
export class Ban extends Model {
|
2017-08-02 21:24:01 +00:00
|
|
|
static get tableName () {
|
|
|
|
return 'network_ban'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-13 14:36:07 +00:00
|
|
|
export class News extends Model {
|
2017-08-02 21:24:01 +00:00
|
|
|
static get tableName () {
|
|
|
|
return 'news'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-13 14:36:07 +00:00
|
|
|
export class Donation extends Model {
|
2017-08-02 21:24:01 +00:00
|
|
|
static get tableName () {
|
|
|
|
return 'donation'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-13 14:36:07 +00:00
|
|
|
export class Subscription extends Model {
|
2017-08-02 21:24:01 +00:00
|
|
|
static get tableName () {
|
|
|
|
return 'subscription'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-13 14:36:07 +00:00
|
|
|
export class MinecraftMember extends Model {
|
2017-10-03 11:20:49 +00:00
|
|
|
static get tableName () {
|
|
|
|
return 'mc_member'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-13 14:36:07 +00:00
|
|
|
export class MinecraftToken extends Model {
|
2017-10-03 11:20:49 +00:00
|
|
|
static get tableName () {
|
|
|
|
return 'mc_verify'
|
|
|
|
}
|
|
|
|
}
|