matrix-dimension/src-ts/db/models/Upstream.ts
Travis Ralston 826364e803 Re-implement the Scalar API in typescript
This is part of a rewrite for Dimension to better support integrations. Only the bare minimum scalar APIs are implemented at this point - dimension is non-functional.
2017-12-17 19:22:13 -07:00

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;
}