feat: launch endpoint to insert anime only with malId

This commit is contained in:
Rafi Arrafif
2026-01-27 21:22:08 +07:00
parent 379a5b4b38
commit 2f1e37ce52
7 changed files with 39 additions and 36 deletions

View File

@ -21,6 +21,7 @@ Table medias {
mediaType MediaType [not null]
source String
studios studios [not null]
characters characters [not null]
onDraft Boolean [not null, default: true]
uploader users [not null]
uploadedBy String [not null]
@ -90,6 +91,7 @@ Table characters {
deletedAt DateTime
createdAt DateTime [default: `now()`, not null]
updatedAt DateTime [default: `now()`, not null]
medias medias [not null]
voice_actors lang_va_char [not null]
}
@ -98,8 +100,8 @@ Table voice_actors {
malId Int [unique, not null]
name String [not null]
birthday DateTime
description String [not null]
aboutUrl String [not null]
description String
aboutUrl String
imageUrl String
websiteUrl String
createdBy users [not null]
@ -523,6 +525,11 @@ Table MediaStudios {
mediasId String [ref: > medias.id]
}
Table MediaCharacters {
charactersId String [ref: > characters.id]
mediasId String [ref: > medias.id]
}
Table MediaCollections {
collectionsId String [ref: > collections.id]
mediasId String [ref: > medias.id]