add struct types for new db tables
This commit is contained in:
parent
964311b572
commit
544dfcc2b4
@ -52,6 +52,57 @@ type Target struct {
|
||||
UpdatedAt time.Time `db:"updated_at"`
|
||||
}
|
||||
|
||||
type DonatePage struct {
|
||||
id int `db:"id"`
|
||||
streamerID int `db:"streamer_id"`
|
||||
description string `db:"description"`
|
||||
textAfterDonat string `db:"text_after_donat"`
|
||||
pageBackground string `db:"page_background"`
|
||||
avatar string `db:"avatar"`
|
||||
backgroundImg string `db:"background_img"`
|
||||
}
|
||||
|
||||
type Moderation struct {
|
||||
id int `db:"id"`
|
||||
streamerID int `db:"streamer_id"`
|
||||
enable bool `db:"enable"`
|
||||
duration int `db:"duration"`
|
||||
}
|
||||
|
||||
type Filter struct {
|
||||
id int `db:"id"`
|
||||
streamerID int `db:"streamer_id"`
|
||||
enableLinks bool `db:"enable_links"`
|
||||
}
|
||||
|
||||
type FilterWord struct {
|
||||
id int `db:"id"`
|
||||
donatFilterID int `db:"donat_filter_id"`
|
||||
word string `db:"word"`
|
||||
}
|
||||
|
||||
type VoiceSettings struct {
|
||||
id int `db:"id"`
|
||||
streamerID int `db:"streamer_id"`
|
||||
voiceSpeed int `db:"voice_speed"`
|
||||
scenery string `db:"scenery"`
|
||||
voiceSoundPercent int `db:"voice_sound_percent"`
|
||||
minPrice int `db:"min_price"`
|
||||
}
|
||||
|
||||
type Language struct {
|
||||
id int `db:"id"`
|
||||
isoCode string `db:"iso_code"`
|
||||
ruName string `db:"ru_name"`
|
||||
enName string `db:"en_name"`
|
||||
}
|
||||
|
||||
type VoiceLanguage struct {
|
||||
id int `db:"id"`
|
||||
voiceSettingID int `db:"voice_setting_id"`
|
||||
languageID int `db:"language_id"`
|
||||
}
|
||||
|
||||
type UpdateDonatPage struct {
|
||||
ProfileAvatar bool `json:"profileAvatar"`
|
||||
Description string `json:"description"`
|
||||
|
@ -86,7 +86,7 @@ CREATE TABLE IF NOT EXISTS voice_settings (
|
||||
min_price INTEGER NOT NULL,
|
||||
)
|
||||
|
||||
CREATE TABLE IF NOT EXISTS voice_languages (
|
||||
CREATE TABLE IF NOT EXISTS languages (
|
||||
id SERIAL PRIMARY KEY,
|
||||
iso_code TEXT DEFAULT '',
|
||||
ru_name TEXT DEFAULT '',
|
||||
|
Loading…
x
Reference in New Issue
Block a user