mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 17:08:13 +00:00
more schema
This commit is contained in:
1 parent
5a94e18779
commit
ea2261c07a
2 files changed
+30
-2
No files matched your search
@@ -8,6 +8,9 @@ CREATE TABLE tts_model_upload_jobs (
|
||||
-- Foreign key to user
|
||||
creator_user_token CHAR(16) NOT NULL,
|
||||
|
||||
-- For abuse tracking.
|
||||
creator_ip_address CHAR(16) NOT NULL,
|
||||
|
||||
-- Users can upload their own private models.
|
||||
-- They can choose to make them public later.
|
||||
is_private_for_creator BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
@@ -59,6 +62,9 @@ CREATE TABLE w2l_template_upload_jobs (
|
||||
-- Foreign key to user
|
||||
creator_user_token CHAR(16) NOT NULL,
|
||||
|
||||
-- For abuse tracking.
|
||||
creator_ip_address CHAR(16) NOT NULL,
|
||||
|
||||
-- Users can upload their own private templates.
|
||||
-- They can choose to make them public later.
|
||||
is_private_for_creator BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
|
||||
@@ -8,6 +8,20 @@ CREATE TABLE tts_models (
|
||||
-- Effective "primary key" (PUBLIC)
|
||||
token CHAR(16) NOT NULL UNIQUE,
|
||||
|
||||
-- Optional Pointer to a newer version of the voice
|
||||
-- If there's a newer version, we can disable this one.
|
||||
updated_model_token CHAR(16) DEFAULT NULL,
|
||||
|
||||
-- We an disable a voice for a variety of reasons
|
||||
-- In this case, the original author disables it.
|
||||
user_disabled BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
-- In this case, a moderator author disables it.
|
||||
mod_disabled BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
|
||||
-- A combination of ['username' + 'voice-name']
|
||||
-- There can be public aliases for voices.
|
||||
slug CHAR(64) NOT NULL UNIQUE,
|
||||
|
||||
-- NB: DO NOT CHANGE ORDER; APPEND ONLY!
|
||||
-- THIS MUST MATCH THE RESPECTIVE JOBS TABLE.
|
||||
tts_model_type ENUM(
|
||||
@@ -20,6 +34,9 @@ CREATE TABLE tts_models (
|
||||
-- The name of the voice
|
||||
voice_name VARCHAR(255) NOT NULL,
|
||||
|
||||
-- If the voice is "happy" or a singer "a-capella", etc.
|
||||
voice_characteristic VARCHAR(255) DEFAULT NULL,
|
||||
|
||||
-- The speaker (in the case of cartoon characters)
|
||||
voice_actor_name VARCHAR(255) DEFAULT NULL,
|
||||
|
||||
@@ -46,10 +63,15 @@ CREATE TABLE tts_models (
|
||||
-- For the thumbnail we show.
|
||||
public_bucket_hash CHAR(32) NOT NULL UNIQUE,
|
||||
|
||||
-- Calculated average, on a scale of 0-100
|
||||
-- Null with zero ratings.
|
||||
calculated_average_score INT(3) DEFAULT NULL,
|
||||
calculated_score_count INT(10) NOT NULL DEFAULT 0,
|
||||
|
||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
|
||||
-- If this is removed.
|
||||
-- If this is removed by a mod.
|
||||
deleted_at TIMESTAMP DEFAULT NULL
|
||||
|
||||
) ENGINE=INNODB;
|
||||
@@ -98,7 +120,7 @@ CREATE TABLE w2l_templates (
|
||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
|
||||
-- If this is removed.
|
||||
-- If this is removed by a mod.
|
||||
deleted_at TIMESTAMP DEFAULT NULL
|
||||
|
||||
) ENGINE=INNODB;
|
||||
Reference in new issue
Block a user