feat: add translated names for Devil Fruits and update related schemas
Build Docker Image / build (push) Successful in 1m33s
Build Docker Image / build (push) Successful in 1m33s
- Added support for translated names and French translated names in the DevilFruitRecord and Character interfaces. - Updated JSON import/export scripts to handle new translated name fields. - Enhanced scraping logic to extract translated names from the source. - Modified database schema to include translated names for Devil Fruits. - Updated daily fruit selection to include translated names for characters.
This commit is contained in:
@@ -5,6 +5,9 @@ import { eq, and } from 'drizzle-orm';
|
||||
const characterWithFruitSelect = {
|
||||
id: character.id,
|
||||
name: character.name,
|
||||
frName: character.frName,
|
||||
translatedName: character.translatedName,
|
||||
frTranslatedName: character.frTranslatedName,
|
||||
devilFruitId: character.devilFruitId,
|
||||
devilFruitName: devilFruit.name,
|
||||
devilFruitType: devilFruit.type,
|
||||
|
||||
@@ -30,6 +30,8 @@ export type Arc = InferSelectModel<typeof arc>;
|
||||
export const devilFruit = sqliteTable('devil_fruit', {
|
||||
id: text('id').primaryKey(),
|
||||
name: text('name').notNull().unique(),
|
||||
translatedName: text('translated_name'),
|
||||
frTranslatedName: text('fr_translated_name'),
|
||||
type: text('type').$type<DevilFruitType>(),
|
||||
url: text('url')
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user