add test and update router version
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { sequelize } from '../../../modules/sequelize.ts';
|
||||
import { DataTypes, Model } from 'sequelize';
|
||||
import { AppData, AppType } from './app.ts';
|
||||
import { AppData, AppType, AppStatus } from './app.ts';
|
||||
|
||||
export type AppList = Partial<InstanceType<typeof AppListModel>>;
|
||||
|
||||
@@ -13,6 +13,7 @@ export class AppListModel extends Model {
|
||||
declare version: string;
|
||||
declare key: string;
|
||||
declare uid: string;
|
||||
declare status: string;
|
||||
}
|
||||
|
||||
AppListModel.init(
|
||||
@@ -38,6 +39,10 @@ AppListModel.init(
|
||||
type: DataTypes.UUID,
|
||||
allowNull: true,
|
||||
},
|
||||
status: {
|
||||
type: DataTypes.STRING,
|
||||
defaultValue: 'running',
|
||||
},
|
||||
},
|
||||
{
|
||||
sequelize,
|
||||
|
||||
Reference in New Issue
Block a user