mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
25 lines
440 B
TypeScript
25 lines
440 B
TypeScript
|
import { AutoIncrement, Column, Model, PrimaryKey, Table } from "sequelize-typescript";
|
||
|
|
||
|
@Table({
|
||
|
tableName: "dimension_upstreams",
|
||
|
underscoredAll: false,
|
||
|
timestamps: false,
|
||
|
})
|
||
|
export default class Upstream extends Model<Upstream> {
|
||
|
@PrimaryKey
|
||
|
@AutoIncrement
|
||
|
@Column
|
||
|
id: number;
|
||
|
|
||
|
@Column
|
||
|
name: string;
|
||
|
|
||
|
@Column
|
||
|
type: string;
|
||
|
|
||
|
@Column
|
||
|
scalarUrl: string;
|
||
|
|
||
|
@Column
|
||
|
apiUrl: string;
|
||
|
}
|