mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
31 lines
646 B
TypeScript
31 lines
646 B
TypeScript
|
import { AllowNull, BelongsTo, Column, ForeignKey, Model, PrimaryKey, Table } from "sequelize-typescript";
|
||
|
import AppService from "./AppService";
|
||
|
|
||
|
@Table({
|
||
|
tableName: "dimension_appservice_users",
|
||
|
underscoredAll: false,
|
||
|
timestamps: false,
|
||
|
})
|
||
|
export default class AppServiceUser extends Model<AppServiceUser> {
|
||
|
@PrimaryKey
|
||
|
@Column
|
||
|
id: string;
|
||
|
|
||
|
@Column
|
||
|
accessToken: string;
|
||
|
|
||
|
@AllowNull
|
||
|
@Column
|
||
|
avatarUrl?: string;
|
||
|
|
||
|
@AllowNull
|
||
|
@Column
|
||
|
displayName?: string;
|
||
|
|
||
|
@Column
|
||
|
@ForeignKey(() => AppService)
|
||
|
appserviceId: string;
|
||
|
|
||
|
@BelongsTo(() => AppService)
|
||
|
appservice: AppService;
|
||
|
}
|