remove mark
This commit is contained in:
@@ -1,46 +1 @@
|
||||
// import { DataTypes, Model, Sequelize } from 'sequelize';
|
||||
// import { useContextKey } from '@kevisual/context';
|
||||
// const sequelize = useContextKey<Sequelize>('sequelize');
|
||||
// export class Org extends Model {
|
||||
// declare id: string;
|
||||
// declare username: string;
|
||||
// declare description: string;
|
||||
// declare users: { role: string; uid: string }[];
|
||||
// }
|
||||
|
||||
// Org.init(
|
||||
// {
|
||||
// id: {
|
||||
// type: DataTypes.UUID,
|
||||
// primaryKey: true,
|
||||
// defaultValue: DataTypes.UUIDV4,
|
||||
// },
|
||||
// username: {
|
||||
// type: DataTypes.STRING,
|
||||
// allowNull: false,
|
||||
// unique: true,
|
||||
// },
|
||||
// description: {
|
||||
// type: DataTypes.STRING,
|
||||
// allowNull: true,
|
||||
// },
|
||||
// users: {
|
||||
// type: DataTypes.JSONB,
|
||||
// allowNull: true,
|
||||
// defaultValue: [],
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// sequelize,
|
||||
// modelName: 'cf_org',
|
||||
// paranoid: true,
|
||||
// },
|
||||
// );
|
||||
|
||||
// Org.sync({ alter: true, logging: false }).catch((e) => {
|
||||
// console.error('Org sync', e);
|
||||
// });
|
||||
|
||||
// useContextKey('OrgModel', () => Org);
|
||||
import { Org } from '@kevisual/code-center-module/models';
|
||||
export { Org };
|
||||
export { Org } from '../auth/models/index.ts'
|
||||
@@ -1,6 +1,6 @@
|
||||
import { User, UserInit, UserServices } from '@kevisual/code-center-module/models';
|
||||
import { UserSecretInit, UserSecret } from '@kevisual/code-center-module/models';
|
||||
import { OrgInit } from '@kevisual/code-center-module/models';
|
||||
import { User, UserInit, UserServices } from '../auth/models/index.ts';
|
||||
import { UserSecretInit, UserSecret } from '../auth/models/index.ts';
|
||||
import { OrgInit } from '../auth/models/index.ts';
|
||||
export { User, UserInit, UserServices, UserSecret };
|
||||
const init = async () => {
|
||||
await OrgInit(null, null, {
|
||||
|
||||
Reference in New Issue
Block a user