Make Rust models for database schema

This commit is contained in:
2023-01-03 16:11:43 +01:00
parent a9e300ede2
commit 60988cff24
10 changed files with 142 additions and 7 deletions

View File

@@ -6,11 +6,11 @@ CREATE TYPE AgentLanguageRelation as ENUM ('publisher', 'author');
CREATE TABLE Languages (
name VARCHAR(255) PRIMARY KEY,
native VARCHAR(255),
relese Release NOT NULL,
release Release NOT NULL,
targetLanguage TEXT[] NOT NULL,
genre DictGenre[] NOT NULL,
abstract TEXT,
created TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
created TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
description TEXT,
rights TEXT,
license TEXT,