fix: fix错误
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
import { sequelize } from '../../../modules/sequelize.ts';
|
||||
import { DataTypes, Model } from 'sequelize';
|
||||
|
||||
type AppPermissionType = 'public' | 'private' | 'protected';
|
||||
export interface AppData {
|
||||
files: { name: string; path: string }[];
|
||||
permission?: {
|
||||
// 访问权限
|
||||
type: AppPermissionType; // public, private(Only Self), protected(protected, 通过配置访问)
|
||||
users?: string[];
|
||||
orgs?: string[];
|
||||
};
|
||||
}
|
||||
export type AppType = 'web-single' | 'web-module';
|
||||
export enum AppStatus {
|
||||
@@ -45,7 +52,7 @@ AppModel.init(
|
||||
defaultValue: '',
|
||||
},
|
||||
data: {
|
||||
type: DataTypes.JSON,
|
||||
type: DataTypes.JSONB,
|
||||
defaultValue: {},
|
||||
},
|
||||
version: {
|
||||
|
||||
Reference in New Issue
Block a user