init
This commit is contained in:
18
database/migrations/1761885935168_create_users_table.js
Normal file
18
database/migrations/1761885935168_create_users_table.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { BaseSchema } from '@adonisjs/lucid/schema';
|
||||
export default class extends BaseSchema {
|
||||
tableName = 'users';
|
||||
async up() {
|
||||
this.schema.createTable(this.tableName, (table) => {
|
||||
table.increments('id').notNullable();
|
||||
table.string('full_name').nullable();
|
||||
table.string('email', 254).notNullable().unique();
|
||||
table.string('password').notNullable();
|
||||
table.timestamp('created_at').notNullable();
|
||||
table.timestamp('updated_at').nullable();
|
||||
});
|
||||
}
|
||||
async down() {
|
||||
this.schema.dropTable(this.tableName);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=1761885935168_create_users_table.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"1761885935168_create_users_table.js","sourceRoot":"","sources":["../../../database/migrations/1761885935168_create_users_table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAEnD,MAAM,CAAC,OAAO,MAAO,SAAQ,UAAU;IAC3B,SAAS,GAAG,OAAO,CAAA;IAE7B,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YAChD,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAA;YACpC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE,CAAA;YACpC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,CAAA;YACjD,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAA;YAEtC,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,CAAA;YAC3C,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE,CAAA;QAC1C,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACvC,CAAC;CACF"}
|
||||
@@ -0,0 +1,28 @@
|
||||
import { BaseSchema } from '@adonisjs/lucid/schema';
|
||||
export default class extends BaseSchema {
|
||||
tableName = 'auth_access_tokens';
|
||||
async up() {
|
||||
this.schema.createTable(this.tableName, (table) => {
|
||||
table.increments('id');
|
||||
table
|
||||
.integer('tokenable_id')
|
||||
.notNullable()
|
||||
.unsigned()
|
||||
.references('id')
|
||||
.inTable('users')
|
||||
.onDelete('CASCADE');
|
||||
table.string('type').notNullable();
|
||||
table.string('name').nullable();
|
||||
table.string('hash').notNullable();
|
||||
table.text('abilities').notNullable();
|
||||
table.timestamp('created_at');
|
||||
table.timestamp('updated_at');
|
||||
table.timestamp('last_used_at').nullable();
|
||||
table.timestamp('expires_at').nullable();
|
||||
});
|
||||
}
|
||||
async down() {
|
||||
this.schema.dropTable(this.tableName);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=1768620764696_create_access_tokens_table.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"1768620764696_create_access_tokens_table.js","sourceRoot":"","sources":["../../../database/migrations/1768620764696_create_access_tokens_table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAEnD,MAAM,CAAC,OAAO,MAAO,SAAQ,UAAU;IAC3B,SAAS,GAAG,oBAAoB,CAAA;IAE1C,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YAChD,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;YACtB,KAAK;iBACF,OAAO,CAAC,cAAc,CAAC;iBACvB,WAAW,EAAE;iBACb,QAAQ,EAAE;iBACV,UAAU,CAAC,IAAI,CAAC;iBAChB,OAAO,CAAC,OAAO,CAAC;iBAChB,QAAQ,CAAC,SAAS,CAAC,CAAA;YAEtB,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAA;YAClC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAAA;YAC/B,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAA;YAClC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,CAAA;YACrC,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;YAC7B,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;YAC7B,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE,CAAA;YAC1C,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE,CAAA;QAC1C,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACvC,CAAC;CACF"}
|
||||
20
database/migrations/1778591342684_create_profiles_table.js
Normal file
20
database/migrations/1778591342684_create_profiles_table.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import { BaseSchema } from '@adonisjs/lucid/schema';
|
||||
export default class extends BaseSchema {
|
||||
tableName = 'profiles';
|
||||
async up() {
|
||||
this.schema.createTable(this.tableName, (table) => {
|
||||
table.increments('id');
|
||||
table.string('name').notNullable();
|
||||
table.string('avatar_url').notNullable();
|
||||
table.string('title').notNullable();
|
||||
table.text('description').notNullable();
|
||||
table.text('about_text').notNullable();
|
||||
table.timestamp('created_at');
|
||||
table.timestamp('updated_at');
|
||||
});
|
||||
}
|
||||
async down() {
|
||||
this.schema.dropTable(this.tableName);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=1778591342684_create_profiles_table.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"1778591342684_create_profiles_table.js","sourceRoot":"","sources":["../../../database/migrations/1778591342684_create_profiles_table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAEnD,MAAM,CAAC,OAAO,MAAO,SAAQ,UAAU;IAC3B,SAAS,GAAG,UAAU,CAAA;IAEhC,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YAChD,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;YACtB,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAA;YAClC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,CAAA;YACxC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAA;YACnC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,WAAW,EAAE,CAAA;YACvC,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE,CAAA;YACtC,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;YAC7B,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;QAC/B,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACvC,CAAC;CACF"}
|
||||
16
database/migrations/1778591344222_create_tags_table.js
Normal file
16
database/migrations/1778591344222_create_tags_table.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { BaseSchema } from '@adonisjs/lucid/schema';
|
||||
export default class extends BaseSchema {
|
||||
tableName = 'tags';
|
||||
async up() {
|
||||
this.schema.createTable(this.tableName, (table) => {
|
||||
table.increments('id');
|
||||
table.string('name').notNullable();
|
||||
table.timestamp('created_at');
|
||||
table.timestamp('updated_at');
|
||||
});
|
||||
}
|
||||
async down() {
|
||||
this.schema.dropTable(this.tableName);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=1778591344222_create_tags_table.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"1778591344222_create_tags_table.js","sourceRoot":"","sources":["../../../database/migrations/1778591344222_create_tags_table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAEnD,MAAM,CAAC,OAAO,MAAO,SAAQ,UAAU;IAC3B,SAAS,GAAG,MAAM,CAAA;IAE5B,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YAChD,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;YACtB,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAA;YAClC,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;YAC7B,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;QAC/B,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACvC,CAAC;CACF"}
|
||||
19
database/migrations/1778591345735_create_games_table.js
Normal file
19
database/migrations/1778591345735_create_games_table.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import { BaseSchema } from '@adonisjs/lucid/schema';
|
||||
export default class extends BaseSchema {
|
||||
tableName = 'games';
|
||||
async up() {
|
||||
this.schema.createTable(this.tableName, (table) => {
|
||||
table.increments('id');
|
||||
table.string('name').notNullable();
|
||||
table.string('icon').notNullable();
|
||||
table.string('type').notNullable();
|
||||
table.integer('sort_order').defaultTo(0);
|
||||
table.timestamp('created_at');
|
||||
table.timestamp('updated_at');
|
||||
});
|
||||
}
|
||||
async down() {
|
||||
this.schema.dropTable(this.tableName);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=1778591345735_create_games_table.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"1778591345735_create_games_table.js","sourceRoot":"","sources":["../../../database/migrations/1778591345735_create_games_table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAEnD,MAAM,CAAC,OAAO,MAAO,SAAQ,UAAU;IAC3B,SAAS,GAAG,OAAO,CAAA;IAE7B,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YAChD,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;YACtB,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAA;YAClC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAA;YAClC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAA;YAClC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;YACxC,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;YAC7B,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;QAC/B,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACvC,CAAC;CACF"}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { BaseSchema } from '@adonisjs/lucid/schema';
|
||||
export default class extends BaseSchema {
|
||||
tableName = 'social_links';
|
||||
async up() {
|
||||
this.schema.createTable(this.tableName, (table) => {
|
||||
table.increments('id');
|
||||
table.string('platform').notNullable();
|
||||
table.string('url').notNullable();
|
||||
table.string('username').notNullable();
|
||||
table.string('icon').notNullable();
|
||||
table.string('color').notNullable();
|
||||
table.timestamp('created_at');
|
||||
table.timestamp('updated_at');
|
||||
});
|
||||
}
|
||||
async down() {
|
||||
this.schema.dropTable(this.tableName);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=1778591347252_create_social_links_table.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"1778591347252_create_social_links_table.js","sourceRoot":"","sources":["../../../database/migrations/1778591347252_create_social_links_table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAEnD,MAAM,CAAC,OAAO,MAAO,SAAQ,UAAU;IAC3B,SAAS,GAAG,cAAc,CAAA;IAEpC,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YAChD,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;YACtB,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAA;YACtC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAA;YACjC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAA;YACtC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAA;YAClC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAA;YACnC,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;YAC7B,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;QAC/B,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACvC,CAAC;CACF"}
|
||||
19
database/migrations/1778591348765_create_fanarts_table.js
Normal file
19
database/migrations/1778591348765_create_fanarts_table.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import { BaseSchema } from '@adonisjs/lucid/schema';
|
||||
export default class extends BaseSchema {
|
||||
tableName = 'fanarts';
|
||||
async up() {
|
||||
this.schema.createTable(this.tableName, (table) => {
|
||||
table.increments('id');
|
||||
table.string('title').notNullable();
|
||||
table.string('author').notNullable();
|
||||
table.string('image_url').notNullable();
|
||||
table.integer('sort_order').defaultTo(0);
|
||||
table.timestamp('created_at');
|
||||
table.timestamp('updated_at');
|
||||
});
|
||||
}
|
||||
async down() {
|
||||
this.schema.dropTable(this.tableName);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=1778591348765_create_fanarts_table.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"1778591348765_create_fanarts_table.js","sourceRoot":"","sources":["../../../database/migrations/1778591348765_create_fanarts_table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAEnD,MAAM,CAAC,OAAO,MAAO,SAAQ,UAAU;IAC3B,SAAS,GAAG,SAAS,CAAA;IAE/B,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YAChD,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;YACtB,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAA;YACnC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAA;YACpC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,WAAW,EAAE,CAAA;YACvC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;YACxC,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;YAC7B,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;QAC/B,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACvC,CAAC;CACF"}
|
||||
@@ -0,0 +1,17 @@
|
||||
import { BaseSchema } from '@adonisjs/lucid/schema';
|
||||
export default class extends BaseSchema {
|
||||
tableName = 'brand_colors';
|
||||
async up() {
|
||||
this.schema.createTable(this.tableName, (table) => {
|
||||
table.increments('id');
|
||||
table.string('name').notNullable();
|
||||
table.string('hex').notNullable();
|
||||
table.timestamp('created_at');
|
||||
table.timestamp('updated_at');
|
||||
});
|
||||
}
|
||||
async down() {
|
||||
this.schema.dropTable(this.tableName);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=1778591350296_create_brand_colors_table.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"1778591350296_create_brand_colors_table.js","sourceRoot":"","sources":["../../../database/migrations/1778591350296_create_brand_colors_table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAEnD,MAAM,CAAC,OAAO,MAAO,SAAQ,UAAU;IAC3B,SAAS,GAAG,cAAc,CAAA;IAEpC,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YAChD,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;YACtB,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAA;YAClC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAA;YACjC,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;YAC7B,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;QAC/B,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACvC,CAAC;CACF"}
|
||||
@@ -0,0 +1,16 @@
|
||||
import { BaseSchema } from '@adonisjs/lucid/schema';
|
||||
export default class extends BaseSchema {
|
||||
tableName = 'brand_fonts';
|
||||
async up() {
|
||||
this.schema.createTable(this.tableName, (table) => {
|
||||
table.increments('id');
|
||||
table.string('name').notNullable();
|
||||
table.timestamp('created_at');
|
||||
table.timestamp('updated_at');
|
||||
});
|
||||
}
|
||||
async down() {
|
||||
this.schema.dropTable(this.tableName);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=1778591351862_create_brand_fonts_table.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"1778591351862_create_brand_fonts_table.js","sourceRoot":"","sources":["../../../database/migrations/1778591351862_create_brand_fonts_table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAEnD,MAAM,CAAC,OAAO,MAAO,SAAQ,UAAU;IAC3B,SAAS,GAAG,aAAa,CAAA;IAEnC,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YAChD,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA;YACtB,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAA;YAClC,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;YAC7B,KAAK,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;QAC/B,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACvC,CAAC;CACF"}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { BaseSchema } from '@adonisjs/lucid/schema';
|
||||
export default class extends BaseSchema {
|
||||
tableName = 'profiles';
|
||||
async up() {
|
||||
this.schema.alterTable(this.tableName, (table) => {
|
||||
table.string('background_image_url').nullable();
|
||||
});
|
||||
}
|
||||
async down() {
|
||||
this.schema.alterTable(this.tableName, (table) => {
|
||||
table.dropColumn('background_image_url');
|
||||
});
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=1778700000000_add_background_image_url_to_profiles.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"1778700000000_add_background_image_url_to_profiles.js","sourceRoot":"","sources":["../../../database/migrations/1778700000000_add_background_image_url_to_profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAEnD,MAAM,CAAC,OAAO,MAAO,SAAQ,UAAU;IAC3B,SAAS,GAAG,UAAU,CAAA;IAEhC,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YAC/C,KAAK,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,QAAQ,EAAE,CAAA;QACjD,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;YAC/C,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAA;QAC1C,CAAC,CAAC,CAAA;IACJ,CAAC;CACF"}
|
||||
288
database/schema.js
Normal file
288
database/schema.js
Normal file
@@ -0,0 +1,288 @@
|
||||
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 { BaseModel, column } from '@adonisjs/lucid/orm';
|
||||
import { DateTime } from 'luxon';
|
||||
export class AuthAccessTokenSchema extends BaseModel {
|
||||
static $columns = ['abilities', 'createdAt', 'expiresAt', 'hash', 'id', 'lastUsedAt', 'name', 'tokenableId', 'type', 'updatedAt'];
|
||||
$columns = AuthAccessTokenSchema.$columns;
|
||||
}
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], AuthAccessTokenSchema.prototype, "abilities", void 0);
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], AuthAccessTokenSchema.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
column.dateTime(),
|
||||
__metadata("design:type", Object)
|
||||
], AuthAccessTokenSchema.prototype, "expiresAt", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], AuthAccessTokenSchema.prototype, "hash", void 0);
|
||||
__decorate([
|
||||
column({ isPrimary: true }),
|
||||
__metadata("design:type", Number)
|
||||
], AuthAccessTokenSchema.prototype, "id", void 0);
|
||||
__decorate([
|
||||
column.dateTime(),
|
||||
__metadata("design:type", Object)
|
||||
], AuthAccessTokenSchema.prototype, "lastUsedAt", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", Object)
|
||||
], AuthAccessTokenSchema.prototype, "name", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", Number)
|
||||
], AuthAccessTokenSchema.prototype, "tokenableId", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], AuthAccessTokenSchema.prototype, "type", void 0);
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true, autoUpdate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], AuthAccessTokenSchema.prototype, "updatedAt", void 0);
|
||||
export class BrandColorSchema extends BaseModel {
|
||||
static $columns = ['createdAt', 'hex', 'id', 'name', 'updatedAt'];
|
||||
$columns = BrandColorSchema.$columns;
|
||||
}
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], BrandColorSchema.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], BrandColorSchema.prototype, "hex", void 0);
|
||||
__decorate([
|
||||
column({ isPrimary: true }),
|
||||
__metadata("design:type", Number)
|
||||
], BrandColorSchema.prototype, "id", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], BrandColorSchema.prototype, "name", void 0);
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true, autoUpdate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], BrandColorSchema.prototype, "updatedAt", void 0);
|
||||
export class BrandFontSchema extends BaseModel {
|
||||
static $columns = ['createdAt', 'id', 'name', 'updatedAt'];
|
||||
$columns = BrandFontSchema.$columns;
|
||||
}
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], BrandFontSchema.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
column({ isPrimary: true }),
|
||||
__metadata("design:type", Number)
|
||||
], BrandFontSchema.prototype, "id", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], BrandFontSchema.prototype, "name", void 0);
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true, autoUpdate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], BrandFontSchema.prototype, "updatedAt", void 0);
|
||||
export class FanartSchema extends BaseModel {
|
||||
static $columns = ['author', 'createdAt', 'id', 'imageUrl', 'sortOrder', 'title', 'updatedAt'];
|
||||
$columns = FanartSchema.$columns;
|
||||
}
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], FanartSchema.prototype, "author", void 0);
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], FanartSchema.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
column({ isPrimary: true }),
|
||||
__metadata("design:type", Number)
|
||||
], FanartSchema.prototype, "id", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], FanartSchema.prototype, "imageUrl", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", Object)
|
||||
], FanartSchema.prototype, "sortOrder", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], FanartSchema.prototype, "title", void 0);
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true, autoUpdate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], FanartSchema.prototype, "updatedAt", void 0);
|
||||
export class GameSchema extends BaseModel {
|
||||
static $columns = ['createdAt', 'icon', 'id', 'name', 'sortOrder', 'type', 'updatedAt'];
|
||||
$columns = GameSchema.$columns;
|
||||
}
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], GameSchema.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], GameSchema.prototype, "icon", void 0);
|
||||
__decorate([
|
||||
column({ isPrimary: true }),
|
||||
__metadata("design:type", Number)
|
||||
], GameSchema.prototype, "id", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], GameSchema.prototype, "name", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", Object)
|
||||
], GameSchema.prototype, "sortOrder", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], GameSchema.prototype, "type", void 0);
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true, autoUpdate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], GameSchema.prototype, "updatedAt", void 0);
|
||||
export class ProfileSchema extends BaseModel {
|
||||
static $columns = ['aboutText', 'avatarUrl', 'backgroundImageUrl', 'createdAt', 'description', 'id', 'name', 'title', 'updatedAt'];
|
||||
$columns = ProfileSchema.$columns;
|
||||
}
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], ProfileSchema.prototype, "aboutText", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], ProfileSchema.prototype, "avatarUrl", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", Object)
|
||||
], ProfileSchema.prototype, "backgroundImageUrl", void 0);
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], ProfileSchema.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], ProfileSchema.prototype, "description", void 0);
|
||||
__decorate([
|
||||
column({ isPrimary: true }),
|
||||
__metadata("design:type", Number)
|
||||
], ProfileSchema.prototype, "id", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], ProfileSchema.prototype, "name", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], ProfileSchema.prototype, "title", void 0);
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true, autoUpdate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], ProfileSchema.prototype, "updatedAt", void 0);
|
||||
export class SocialLinkSchema extends BaseModel {
|
||||
static $columns = ['color', 'createdAt', 'icon', 'id', 'platform', 'updatedAt', 'url', 'username'];
|
||||
$columns = SocialLinkSchema.$columns;
|
||||
}
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], SocialLinkSchema.prototype, "color", void 0);
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], SocialLinkSchema.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], SocialLinkSchema.prototype, "icon", void 0);
|
||||
__decorate([
|
||||
column({ isPrimary: true }),
|
||||
__metadata("design:type", Number)
|
||||
], SocialLinkSchema.prototype, "id", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], SocialLinkSchema.prototype, "platform", void 0);
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true, autoUpdate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], SocialLinkSchema.prototype, "updatedAt", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], SocialLinkSchema.prototype, "url", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], SocialLinkSchema.prototype, "username", void 0);
|
||||
export class TagSchema extends BaseModel {
|
||||
static $columns = ['createdAt', 'id', 'name', 'updatedAt'];
|
||||
$columns = TagSchema.$columns;
|
||||
}
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], TagSchema.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
column({ isPrimary: true }),
|
||||
__metadata("design:type", Number)
|
||||
], TagSchema.prototype, "id", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], TagSchema.prototype, "name", void 0);
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true, autoUpdate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], TagSchema.prototype, "updatedAt", void 0);
|
||||
export class UserSchema extends BaseModel {
|
||||
static $columns = ['createdAt', 'email', 'fullName', 'id', 'password', 'updatedAt'];
|
||||
$columns = UserSchema.$columns;
|
||||
}
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true }),
|
||||
__metadata("design:type", DateTime)
|
||||
], UserSchema.prototype, "createdAt", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", String)
|
||||
], UserSchema.prototype, "email", void 0);
|
||||
__decorate([
|
||||
column(),
|
||||
__metadata("design:type", Object)
|
||||
], UserSchema.prototype, "fullName", void 0);
|
||||
__decorate([
|
||||
column({ isPrimary: true }),
|
||||
__metadata("design:type", Number)
|
||||
], UserSchema.prototype, "id", void 0);
|
||||
__decorate([
|
||||
column({ serializeAs: null }),
|
||||
__metadata("design:type", String)
|
||||
], UserSchema.prototype, "password", void 0);
|
||||
__decorate([
|
||||
column.dateTime({ autoCreate: true, autoUpdate: true }),
|
||||
__metadata("design:type", Object)
|
||||
], UserSchema.prototype, "updatedAt", void 0);
|
||||
//# sourceMappingURL=schema.js.map
|
||||
1
database/schema.js.map
Normal file
1
database/schema.js.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../database/schema.ts"],"names":[],"mappings":";;;;;;;;;AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IAClD,MAAM,CAAC,QAAQ,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,CAAU,CAAA;IAC1I,QAAQ,GAAG,qBAAqB,CAAC,QAAQ,CAAA;;AAEjC;IADP,MAAM,EAAE;;wDACgB;AAEjB;IADP,MAAM,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,C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C;;6CACtB"}
|
||||
2
database/schema_rules.js
Normal file
2
database/schema_rules.js
Normal file
@@ -0,0 +1,2 @@
|
||||
export default {};
|
||||
//# sourceMappingURL=schema_rules.js.map
|
||||
1
database/schema_rules.js.map
Normal file
1
database/schema_rules.js.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"schema_rules.js","sourceRoot":"","sources":["../../database/schema_rules.ts"],"names":[],"mappings":"AAEA,eAAe,EAAwB,CAAA"}
|
||||
12
database/seeders/admin_seeder.js
Normal file
12
database/seeders/admin_seeder.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import User from '#models/user';
|
||||
import { BaseSeeder } from '@adonisjs/lucid/seeders';
|
||||
export default class extends BaseSeeder {
|
||||
async run() {
|
||||
await User.updateOrCreate({ email: process.env.ADMIN_EMAIL }, {
|
||||
fullName: process.env.ADMIN_FULL_NAME,
|
||||
email: process.env.ADMIN_EMAIL,
|
||||
password: process.env.ADMIN_PASSWORD,
|
||||
});
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=admin_seeder.js.map
|
||||
1
database/seeders/admin_seeder.js.map
Normal file
1
database/seeders/admin_seeder.js.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"admin_seeder.js","sourceRoot":"","sources":["../../../database/seeders/admin_seeder.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,cAAc,CAAA;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,MAAM,CAAC,OAAO,MAAO,SAAQ,UAAU;IACrC,KAAK,CAAC,GAAG;QACP,MAAM,IAAI,CAAC,cAAc,CACvB,EAAE,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,WAAY,EAAE,EACnC;YACE,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,eAAgB;YACtC,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,WAAY;YAC/B,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,cAAe;SACtC,CACF,CAAA;IACH,CAAC;CACF"}
|
||||
59
database/seeders/lordrutra_seeder.js
Normal file
59
database/seeders/lordrutra_seeder.js
Normal file
@@ -0,0 +1,59 @@
|
||||
import BrandColor from '#models/brand_color';
|
||||
import BrandFont from '#models/brand_font';
|
||||
import Fanart from '#models/fanart';
|
||||
import Game from '#models/game';
|
||||
import Profile from '#models/profile';
|
||||
import SocialLink from '#models/social_link';
|
||||
import Tag from '#models/tag';
|
||||
import { BaseSeeder } from '@adonisjs/lucid/seeders';
|
||||
export default class extends BaseSeeder {
|
||||
async run() {
|
||||
await Profile.create({
|
||||
name: 'LordRutra',
|
||||
avatarUrl: 'https://cdn.davor-nucleus.fr/uploads/1777982864200_antagoniste_feu_2.png',
|
||||
title: 'Empereur Gryphon de la Brume Sanglante',
|
||||
description: `P'tit VTuber FR. Je stream de la strat (Civ VII, Age of Wonders 4), du multi & coop (Helldivers, Darktide, LOL, REPO…), le tout avec un rire d'antagoniste ;p`,
|
||||
aboutText: `Je suis <strong>LordRutra</strong>, p'tit VTuber français et <strong>Empereur Gryphon de la Brume Sanglante</strong>. Je stream de la strat comme <strong>Civilization VII</strong> et <strong>Age of Wonders 4</strong>, mais aussi du multi & coop avec <strong>Helldivers</strong>, <strong>Darktide</strong>, <strong>LOL</strong>, <strong>REPO</strong> et bien d'autres.</p><p>On me dit un peu <strong>fou</strong>, taquin avec un rire d'antagoniste, je ne dis pas le contraire. ;p`,
|
||||
});
|
||||
await Tag.createMany([
|
||||
{ name: 'Stratégie' },
|
||||
{ name: 'Coop' },
|
||||
{ name: 'Animé' },
|
||||
{ name: 'Cringe' },
|
||||
{ name: '4X' },
|
||||
{ name: 'FPS' },
|
||||
{ name: 'MOBA' },
|
||||
{ name: 'Vtuber' },
|
||||
]);
|
||||
await Game.createMany([
|
||||
{ name: 'Civilization VII', icon: '⚔️', type: 'Stratégie 4X — Principal', sortOrder: 1 },
|
||||
{ name: 'Age of Wonders 4', icon: '🧙', type: 'Stratégie Fantasy', sortOrder: 2 },
|
||||
{ name: 'Helldivers 2', icon: '🚀', type: 'Coop / Action', sortOrder: 3 },
|
||||
{ name: 'Warhammer 40K: Darktide', icon: '🩸', type: 'Coop / FPS', sortOrder: 4 },
|
||||
{ name: 'League of Legends', icon: '🏆', type: 'MOBA', sortOrder: 5 },
|
||||
{ name: 'REPO & autres', icon: '👻', type: 'Multijoueur / Divers', sortOrder: 6 },
|
||||
]);
|
||||
await SocialLink.createMany([
|
||||
{ platform: 'Twitch', url: 'https://twitch.tv/lordrutra', username: 'lordrutra', icon: 'twitch.svg', color: '#9147ff' },
|
||||
{ platform: 'YouTube', url: 'https://youtube.com/@lordrutra', username: 'lordrutra', icon: 'youtube.svg', color: '#ff0000' },
|
||||
{ platform: 'TikTok', url: 'https://tiktok.com/@lordrutra', username: 'lordrutra', icon: 'tiktok.svg', color: '#69c9d0' },
|
||||
{ platform: 'Instagram', url: 'https://instagram.com/lordrutra', username: 'lordrutra', icon: 'instagram.svg', color: '#e1306c' },
|
||||
{ platform: 'Discord', url: 'https://discord.gg/a2Fs9nNjc9', username: 'Rejoindre le serveur', icon: 'discord.svg', color: '#5865f2' },
|
||||
]);
|
||||
await Fanart.createMany([
|
||||
{ title: 'Fan Art 1', author: 'Luri', imageUrl: 'https://cdn.davor-nucleus.fr/uploads/1778583348894_luri_fanart.jpg', sortOrder: 1 },
|
||||
{ title: 'Fan Art 2', author: 'Hazel', imageUrl: 'https://cdn.davor-nucleus.fr/uploads/1778583281467_hazel_fanart.jpg', sortOrder: 2 },
|
||||
{ title: 'Rutra X Empire de Lillieum', author: 'café', imageUrl: 'https://cdn.davor-nucleus.fr/uploads/1778583288841_caf__fan_art.png', sortOrder: 3 },
|
||||
{ title: 'Rutra papillon', author: 'Luri', imageUrl: 'https://cdn.davor-nucleus.fr/uploads/1778583356219_luri_papillon.jpg', sortOrder: 4 },
|
||||
{ title: 'Rutra et Luri de Noël', author: 'Luri', imageUrl: 'https://cdn.davor-nucleus.fr/uploads/1778583292784_luri_fanart_noel.png', sortOrder: 5 },
|
||||
]);
|
||||
await BrandColor.createMany([
|
||||
{ name: 'Rouge', hex: '#c0302a' },
|
||||
{ name: 'Violet', hex: '#7b3fc4' },
|
||||
{ name: 'Nuit', hex: '#09080f' },
|
||||
{ name: 'Brume', hex: '#f0ece8' },
|
||||
]);
|
||||
await BrandFont.createMany([{ name: 'Cinzel' }, { name: 'Inter' }]);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=lordrutra_seeder.js.map
|
||||
1
database/seeders/lordrutra_seeder.js.map
Normal file
1
database/seeders/lordrutra_seeder.js.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"lordrutra_seeder.js","sourceRoot":"","sources":["../../../database/seeders/lordrutra_seeder.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,SAAS,MAAM,oBAAoB,CAAA;AAC1C,OAAO,MAAM,MAAM,gBAAgB,CAAA;AACnC,OAAO,IAAI,MAAM,cAAc,CAAA;AAC/B,OAAO,OAAO,MAAM,iBAAiB,CAAA;AACrC,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAC5C,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,MAAM,CAAC,OAAO,MAAO,SAAQ,UAAU;IACrC,KAAK,CAAC,GAAG;QACP,MAAM,OAAO,CAAC,MAAM,CAAC;YACnB,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,0EAA0E;YACrF,KAAK,EAAE,wCAAwC;YAC/C,WAAW,EAAE,+JAA+J;YAC5K,SAAS,EAAE,oeAAoe;SAChf,CAAC,CAAA;QAEF,MAAM,GAAG,CAAC,UAAU,CAAC;YACnB,EAAE,IAAI,EAAE,WAAW,EAAE;YACrB,EAAE,IAAI,EAAE,MAAM,EAAE;YAChB,EAAE,IAAI,EAAE,OAAO,EAAE;YACjB,EAAE,IAAI,EAAE,QAAQ,EAAE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