var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
import { DateTime } from 'luxon';
import { BaseModel, column, belongsTo, manyToMany } from '@adonisjs/lucid/orm';
import Category from '#models/category';
import Tag from '#models/tag';
import Training from '#models/training';
import Experience from '#models/experience';
export default class Project extends BaseModel {
}
__decorate([
    column({ isPrimary: true }),
    __metadata("design:type", Number)
], Project.prototype, "id", void 0);
__decorate([
    column(),
    __metadata("design:type", String)
], Project.prototype, "title", void 0);
__decorate([
    column(),
    __metadata("design:type", Object)
], Project.prototype, "content", void 0);
__decorate([
    column.date(),
    __metadata("design:type", Object)
], Project.prototype, "start", void 0);
__decorate([
    column.date(),
    __metadata("design:type", Object)
], Project.prototype, "end", void 0);
__decorate([
    column(),
    __metadata("design:type", Object)
], Project.prototype, "thumbnailUrl", void 0);
__decorate([
    column(),
    __metadata("design:type", Object)
], Project.prototype, "categoryId", void 0);
__decorate([
    column.dateTime({ autoCreate: true }),
    __metadata("design:type", DateTime)
], Project.prototype, "createdAt", void 0);
__decorate([
    column.dateTime({ autoCreate: true, autoUpdate: true }),
    __metadata("design:type", Object)
], Project.prototype, "updatedAt", void 0);
__decorate([
    belongsTo(() => Category),
    __metadata("design:type", Object)
], Project.prototype, "category", void 0);
__decorate([
    manyToMany(() => Tag, {
        pivotTable: 'project_tag',
        pivotForeignKey: 'project_id',
        pivotRelatedForeignKey: 'tag_id',
    }),
    __metadata("design:type", Object)
], Project.prototype, "tags", void 0);
__decorate([
    manyToMany(() => Training, {
        pivotTable: 'project_training',
        pivotForeignKey: 'project_id',
        pivotRelatedForeignKey: 'training_id',
    }),
    __metadata("design:type", Object)
], Project.prototype, "trainings", void 0);
__decorate([
    manyToMany(() => Experience, {
        pivotTable: 'experience_project',
        pivotForeignKey: 'project_id',
        pivotRelatedForeignKey: 'experience_id',
    }),
    __metadata("design:type", Object)
], Project.prototype, "experiences", void 0);
//# sourceMappingURL=project.js.map