mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 14:16:12 +03:00
23 lines
510 B
TypeScript
23 lines
510 B
TypeScript
|
import {
|
||
|
setGlobalOptions,
|
||
|
plugin,
|
||
|
buildSchema,
|
||
|
addModelToTypegoose,
|
||
|
deleteModel,
|
||
|
} from '@typegoose/typegoose';
|
||
|
import * as typegoose from '@typegoose/typegoose';
|
||
|
// typegoose.mongoose.set('debug', true);
|
||
|
setGlobalOptions({
|
||
|
options: {
|
||
|
allowMixed: typegoose.Severity.ALLOW,
|
||
|
},
|
||
|
schemaOptions: {
|
||
|
timestamps: {
|
||
|
createdAt: 'created_at',
|
||
|
updatedAt: 'updated_at',
|
||
|
},
|
||
|
},
|
||
|
});
|
||
|
import { schemas } from './schemas';
|
||
|
|
||
|
console.log(schemas)
|