"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "User", {
    enumerable: true,
    get: function() {
        return User;
    }
});
const _mongoose = require("mongoose");
const UserSchema = new _mongoose.Schema({
    username: {
        type: String,
        required: true,
        unique: true
    },
    isDemoUser: {
        type: Boolean,
        default: false
    },
    isRootUser: {
        type: Boolean,
        default: false
    },
    needsPasswordChange: {
        type: Boolean,
        default: true
    },
    isVerified: {
        type: Boolean,
        default: false
    },
    passwordHash: {
        type: String,
        required: true
    },
    createdAt: {
        type: Date,
        default: Date.now
    },
    roles: {
        type: Array,
        required: true
    }
});
const User = (0, _mongoose.model)("User", UserSchema);

//# sourceMappingURL=User.js.map