"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppDataSource = void 0;
const typeorm_1 = require("typeorm");
const Student_1 = require("./entity/Student");
const Client_1 = require("./entity/Client");
const TitleStudent_1 = require("./entity/TitleStudent");
const TypeStudent_1 = require("./entity/TypeStudent");
const Classes_1 = require("./entity/Classes");
const Course_1 = require("./entity/Course");
const ClientType_1 = require("./entity/ClientType");
const CourseCategory_1 = require("./entity/CourseCategory");
const TeachingMode_1 = require("./entity/TeachingMode");
const ClassDetail_1 = require("./entity/ClassDetail");
const Address_1 = require("./entity/Address");
const User_1 = require("./entity/User");
const ClassNumber_1 = require("./entity/ClassNumber");
const PaymentType_1 = require("./entity/PaymentType");
exports.AppDataSource = new typeorm_1.DataSource({
    type: 'mysql',
    host: process.env.DB_HOST,
    port: Number(process.env.DB_PORT),
    username: process.env.DB_USER,
    password: process.env.DB_PASS,
    database: process.env.DB_NAME,
    synchronize: false,
    logging: false,
    entities: [
        Student_1.Student,
        Client_1.Client,
        TitleStudent_1.TitleStudent,
        TypeStudent_1.TypeStudent,
        Classes_1.Classes,
        Course_1.Course,
        ClientType_1.ClientType,
        CourseCategory_1.CourseCategory,
        TeachingMode_1.TeachingMode,
        ClassDetail_1.ClassDetail,
        Address_1.Address,
        User_1.User,
        ClassNumber_1.ClassNumber,
        PaymentType_1.PaymentType,
        ClassNumber_1.ClassNumber,
    ],
    migrations: [],
    subscribers: [],
});
