import * as mongoose from "mongoose";

export default new mongoose.Schema({
    username: {
        type: String,
        required: true
    },
    password: {
        type: String,
        required: true
    },
    createDate: 'date',
    updatedDate: 'date'
}, {
    timestamps: {
        // @ts-ignore
        createDate: 'created_at',
        updatedDate: 'updated_at'
    }
});
