Initial commit: EKAI v2 - Portal de Notícias IA (React + NestJS)
This commit is contained in:
35
backend/dist-seed/entities/admin.entity.js
Normal file
35
backend/dist-seed/entities/admin.entity.js
Normal file
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
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);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Admin = void 0;
|
||||
const typeorm_1 = require("typeorm");
|
||||
let Admin = class Admin {
|
||||
};
|
||||
exports.Admin = Admin;
|
||||
__decorate([
|
||||
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
||||
__metadata("design:type", Number)
|
||||
], Admin.prototype, "id", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ unique: true }),
|
||||
__metadata("design:type", String)
|
||||
], Admin.prototype, "email", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)(),
|
||||
__metadata("design:type", String)
|
||||
], Admin.prototype, "password", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.CreateDateColumn)(),
|
||||
__metadata("design:type", Date)
|
||||
], Admin.prototype, "created_at", void 0);
|
||||
exports.Admin = Admin = __decorate([
|
||||
(0, typeorm_1.Entity)('admins')
|
||||
], Admin);
|
||||
43
backend/dist-seed/entities/dica.entity.js
Normal file
43
backend/dist-seed/entities/dica.entity.js
Normal file
@@ -0,0 +1,43 @@
|
||||
"use strict";
|
||||
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);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Dica = void 0;
|
||||
const typeorm_1 = require("typeorm");
|
||||
let Dica = class Dica {
|
||||
};
|
||||
exports.Dica = Dica;
|
||||
__decorate([
|
||||
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
||||
__metadata("design:type", Number)
|
||||
], Dica.prototype, "id", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)(),
|
||||
__metadata("design:type", String)
|
||||
], Dica.prototype, "titulo", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ type: 'text' }),
|
||||
__metadata("design:type", String)
|
||||
], Dica.prototype, "conteudo", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
||||
__metadata("design:type", String)
|
||||
], Dica.prototype, "data_publicacao", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ default: true }),
|
||||
__metadata("design:type", Boolean)
|
||||
], Dica.prototype, "ativa", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.CreateDateColumn)(),
|
||||
__metadata("design:type", Date)
|
||||
], Dica.prototype, "created_at", void 0);
|
||||
exports.Dica = Dica = __decorate([
|
||||
(0, typeorm_1.Entity)('dicas')
|
||||
], Dica);
|
||||
47
backend/dist-seed/entities/hype.entity.js
Normal file
47
backend/dist-seed/entities/hype.entity.js
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
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);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Hype = void 0;
|
||||
const typeorm_1 = require("typeorm");
|
||||
let Hype = class Hype {
|
||||
};
|
||||
exports.Hype = Hype;
|
||||
__decorate([
|
||||
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
||||
__metadata("design:type", Number)
|
||||
], Hype.prototype, "id", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)(),
|
||||
__metadata("design:type", String)
|
||||
], Hype.prototype, "nome", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ type: 'int' }),
|
||||
__metadata("design:type", Number)
|
||||
], Hype.prototype, "percentual", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ nullable: true }),
|
||||
__metadata("design:type", String)
|
||||
], Hype.prototype, "icone", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ type: 'int', default: 0 }),
|
||||
__metadata("design:type", Number)
|
||||
], Hype.prototype, "ordem", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ default: true }),
|
||||
__metadata("design:type", Boolean)
|
||||
], Hype.prototype, "ativo", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.CreateDateColumn)(),
|
||||
__metadata("design:type", Date)
|
||||
], Hype.prototype, "created_at", void 0);
|
||||
exports.Hype = Hype = __decorate([
|
||||
(0, typeorm_1.Entity)('hypes')
|
||||
], Hype);
|
||||
35
backend/dist-seed/entities/inscrito.entity.js
Normal file
35
backend/dist-seed/entities/inscrito.entity.js
Normal file
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
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);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Inscrito = void 0;
|
||||
const typeorm_1 = require("typeorm");
|
||||
let Inscrito = class Inscrito {
|
||||
};
|
||||
exports.Inscrito = Inscrito;
|
||||
__decorate([
|
||||
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
||||
__metadata("design:type", Number)
|
||||
], Inscrito.prototype, "id", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ unique: true }),
|
||||
__metadata("design:type", String)
|
||||
], Inscrito.prototype, "email", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ default: true }),
|
||||
__metadata("design:type", Boolean)
|
||||
], Inscrito.prototype, "ativo", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.CreateDateColumn)(),
|
||||
__metadata("design:type", Date)
|
||||
], Inscrito.prototype, "created_at", void 0);
|
||||
exports.Inscrito = Inscrito = __decorate([
|
||||
(0, typeorm_1.Entity)('inscritos')
|
||||
], Inscrito);
|
||||
63
backend/dist-seed/entities/noticia.entity.js
Normal file
63
backend/dist-seed/entities/noticia.entity.js
Normal file
@@ -0,0 +1,63 @@
|
||||
"use strict";
|
||||
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);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Noticia = void 0;
|
||||
const typeorm_1 = require("typeorm");
|
||||
let Noticia = class Noticia {
|
||||
};
|
||||
exports.Noticia = Noticia;
|
||||
__decorate([
|
||||
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
||||
__metadata("design:type", Number)
|
||||
], Noticia.prototype, "id", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)(),
|
||||
__metadata("design:type", String)
|
||||
], Noticia.prototype, "titulo", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
||||
__metadata("design:type", String)
|
||||
], Noticia.prototype, "preview", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ type: 'text' }),
|
||||
__metadata("design:type", String)
|
||||
], Noticia.prototype, "conteudo", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ nullable: true }),
|
||||
__metadata("design:type", String)
|
||||
], Noticia.prototype, "imagem_url", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
||||
__metadata("design:type", String)
|
||||
], Noticia.prototype, "data_publicacao", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ default: 'normal' }),
|
||||
__metadata("design:type", String)
|
||||
], Noticia.prototype, "categoria", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ nullable: true }),
|
||||
__metadata("design:type", String)
|
||||
], Noticia.prototype, "fonte", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ nullable: true }),
|
||||
__metadata("design:type", String)
|
||||
], Noticia.prototype, "link_fonte", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.CreateDateColumn)(),
|
||||
__metadata("design:type", Date)
|
||||
], Noticia.prototype, "created_at", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.UpdateDateColumn)(),
|
||||
__metadata("design:type", Date)
|
||||
], Noticia.prototype, "updated_at", void 0);
|
||||
exports.Noticia = Noticia = __decorate([
|
||||
(0, typeorm_1.Entity)('noticias')
|
||||
], Noticia);
|
||||
Reference in New Issue
Block a user