"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NewUserRequest = exports.AppUser = void 0;
const tslib_1 = require("tslib");
const repository_1 = require("@loopback/repository");
let AppUser = class AppUser {
};
tslib_1.__decorate([
    repository_1.property({
        type: 'string',
        required: true,
        format: 'email',
    }),
    tslib_1.__metadata("design:type", String)
], AppUser.prototype, "email", void 0);
tslib_1.__decorate([
    repository_1.property({
        type: 'string',
    }),
    tslib_1.__metadata("design:type", String)
], AppUser.prototype, "name", void 0);
tslib_1.__decorate([
    repository_1.property({
        type: 'string',
    }),
    tslib_1.__metadata("design:type", String)
], AppUser.prototype, "firstname", void 0);
tslib_1.__decorate([
    repository_1.property({
        type: 'string',
    }),
    tslib_1.__metadata("design:type", String)
], AppUser.prototype, "lastname", void 0);
AppUser = tslib_1.__decorate([
    repository_1.model()
], AppUser);
exports.AppUser = AppUser;
let NewUserRequest = class NewUserRequest extends AppUser {
};
tslib_1.__decorate([
    repository_1.property({
        type: 'string',
        required: true,
        minLength: 8,
    }),
    tslib_1.__metadata("design:type", String)
], NewUserRequest.prototype, "password", void 0);
NewUserRequest = tslib_1.__decorate([
    repository_1.model()
], NewUserRequest);
exports.NewUserRequest = NewUserRequest;
//# sourceMappingURL=new-user.model.js.map