Initial Commit

This commit is contained in:
Constantin Simonis
2025-06-10 08:39:11 +02:00
commit b8fd37f3e0
48 changed files with 30268 additions and 0 deletions

View File

@ -0,0 +1,37 @@
import { MigrationInterface, QueryRunner, Table } from 'typeorm';
export class MigrationTask1548630212872 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<any> {
await queryRunner.createTable(new Table({
name: 'task',
columns: [
{
name: 'id',
type: 'int',
isPrimary: true,
}, {
name: 'title',
type: 'varchar',
}, {
name: 'done',
type: 'boolean',
}, {
name: 'dueDate',
type: 'datetime',
}, {
name: 'createdAt',
type: 'datetime',
}, {
name: 'updatedAt',
type: 'datetime',
},
],
}), true);
}
public async down(queryRunner: QueryRunner): Promise<any> {
console.log(queryRunner);
}
}