@jfln/marvin-db
Version:
biblioteca de objetos para normalizar o acesso a um banco mongo db
69 lines (64 loc) • 1.11 kB
text/typescript
import 'reflect-metadata'
// importa e configura o dotenv
import dotenv from 'dotenv'
dotenv.config()
import {EntityManager, MikroORM} from '@mikro-orm/core'
import {OrmInit} from './modules/MikrOrm.config'
import {
Answer,
Audit,
Challenge,
Gif,
CustomEvent,
CustomEventParticipants,
CustomEventVotes,
DrawnEvent,
DrawnEventVotes,
HashtagEvent,
SettingsChannel,
SettingsConfession,
SettingsGeral,
SettingsMessages,
SettingsRules,
SettingsVent,
User,
UserBadges,
UserChallenge,
UserCoins,
UserLevel,
UserProfile,
UserProfileBackground,
UserPunishment,
UserTransaction,
} from './entities'
const orm = OrmInit()
export {
orm,
EntityManager,
MikroORM,
Answer,
Audit,
Challenge,
Gif,
CustomEvent,
CustomEventParticipants,
CustomEventVotes,
DrawnEvent,
DrawnEventVotes,
HashtagEvent,
SettingsChannel,
SettingsConfession,
SettingsGeral,
SettingsMessages,
SettingsRules,
SettingsVent,
User,
UserBadges,
UserChallenge,
UserCoins,
UserLevel,
UserProfile,
UserProfileBackground,
UserPunishment,
UserTransaction,
}