refactor-db #33
@ -2,7 +2,7 @@
|
|||||||
"id": "0",
|
"id": "0",
|
||||||
"name": "Main Diagram",
|
"name": "Main Diagram",
|
||||||
"createdAt": "2026-05-19T16:28:02.086Z",
|
"createdAt": "2026-05-19T16:28:02.086Z",
|
||||||
"updatedAt": "2026-05-20T01:23:06.250Z",
|
"updatedAt": "2026-05-21T15:34:35.866Z",
|
||||||
"databaseType": "postgresql",
|
"databaseType": "postgresql",
|
||||||
"tables": [
|
"tables": [
|
||||||
{
|
{
|
||||||
@ -768,26 +768,26 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "62",
|
"id": "62",
|
||||||
"name": "media_id",
|
"name": "media",
|
||||||
"type": {
|
"type": {
|
||||||
"id": "uuid",
|
"id": "uuid",
|
||||||
"name": "uuid"
|
"name": "uuid"
|
||||||
},
|
},
|
||||||
"primaryKey": false,
|
"primaryKey": false,
|
||||||
"unique": false,
|
"unique": false,
|
||||||
"nullable": true,
|
"nullable": false,
|
||||||
"createdAt": 1777282589093
|
"createdAt": 1777282589093
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "63",
|
"id": "63",
|
||||||
"name": "name",
|
"name": "site_name",
|
||||||
"type": {
|
"type": {
|
||||||
"id": "varchar",
|
"id": "varchar",
|
||||||
"name": "varchar"
|
"name": "varchar"
|
||||||
},
|
},
|
||||||
"primaryKey": false,
|
"primaryKey": false,
|
||||||
"unique": false,
|
"unique": false,
|
||||||
"nullable": true,
|
"nullable": false,
|
||||||
"createdAt": 1777282589093,
|
"createdAt": 1777282589093,
|
||||||
"characterMaximumLength": "64"
|
"characterMaximumLength": "64"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -256,7 +256,7 @@ model Media {
|
|||||||
themes MediaTheme[]
|
themes MediaTheme[]
|
||||||
demographics MediaDemographic[]
|
demographics MediaDemographic[]
|
||||||
relations MediaRelation[] @relation("MediaRelationMedia")
|
relations MediaRelation[] @relation("MediaRelationMedia")
|
||||||
// external_links MediaExternalLink[]
|
external_links MediaExternalLink[]
|
||||||
// characters MediaCharacter[]
|
// characters MediaCharacter[]
|
||||||
// approved_by User? @relation(fields: [approver_id], references: [id])
|
// approved_by User? @relation(fields: [approver_id], references: [id])
|
||||||
// approved_at Boolean @default(false)
|
// approved_at Boolean @default(false)
|
||||||
@ -432,6 +432,16 @@ model MediaRelation {
|
|||||||
@@map("media_relations")
|
@@map("media_relations")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
model MediaExternalLink {
|
||||||
|
id String @id @db.Uuid @default(uuid(7))
|
||||||
|
media Media @relation(fields: [media_id], references: [id])
|
||||||
|
url String @db.VarChar(255)
|
||||||
|
site_name String? @db.VarChar(100)
|
||||||
|
|
||||||
|
media_id String @db.Uuid
|
||||||
|
@@map("media_external_links")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user