This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
models to typescript and translation
- Loading branch information
Showing
17 changed files
with
213 additions
and
76 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { DataTypes } from 'sequelize'; | ||
import { Column, HasOne, Model, PrimaryKey, Table } from 'sequelize-typescript'; | ||
import { Member } from './Member'; | ||
|
||
@Table | ||
export class Guild extends Model { | ||
|
||
@PrimaryKey | ||
@Column | ||
guildId?: string; | ||
|
||
@Column | ||
triggers?: string; | ||
|
||
@Column | ||
channels?: string; | ||
|
||
@Column | ||
@HasOne(() => Member) | ||
master?: string; | ||
|
||
@Column | ||
reaction?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { BelongsTo, Column, Model, PrimaryKey, Table } from 'sequelize-typescript'; | ||
import { Guild } from './Guild'; | ||
|
||
@Table | ||
export class Member extends Model { | ||
|
||
@Column | ||
public memberId?: string; | ||
|
||
@BelongsTo(() => Guild) | ||
@Column | ||
public guildId?: string; | ||
|
||
@Column | ||
public score?: number; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.