mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
599fb80112
The frontend is still broken and doesn't use these endpoints at all. A migration tool still needs to be written to pull in existing widget configurations.
35 lines
648 B
TypeScript
35 lines
648 B
TypeScript
import { AutoIncrement, Column, Model, PrimaryKey, Table } from "sequelize-typescript";
|
|
import { IntegrationRecord } from "./IntegrationRecord";
|
|
|
|
@Table({
|
|
tableName: "dimension_widgets",
|
|
underscoredAll: false,
|
|
timestamps: false,
|
|
})
|
|
export default class WidgetRecord extends Model<WidgetRecord> implements IntegrationRecord {
|
|
@PrimaryKey
|
|
@AutoIncrement
|
|
@Column
|
|
id: number;
|
|
|
|
@Column
|
|
type: string;
|
|
|
|
@Column
|
|
name: string;
|
|
|
|
@Column
|
|
avatarUrl: string;
|
|
|
|
@Column
|
|
description: string;
|
|
|
|
@Column
|
|
isEnabled: boolean;
|
|
|
|
@Column
|
|
isPublic: boolean;
|
|
|
|
@Column
|
|
optionsJson: string;
|
|
} |