fix: fix错误

This commit is contained in:
2025-02-26 01:59:46 +08:00
parent 69721f3944
commit 3477d098b7
14 changed files with 71 additions and 75 deletions

View File

@@ -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: {