feat: added go-automapper for mapping dtos;
feat: implemented mapspecial package for mapping dtos that are not possible to automap by default; initialized profile service; added dtos for profile and profileSettings
This commit is contained in:
@@ -86,11 +86,11 @@ CREATE TABLE IF NOT EXISTS "profiles" (
|
||||
CREATE TABLE IF NOT EXISTS "profile_settings" (
|
||||
id BIGSERIAL PRIMARY KEY,
|
||||
profile_id BIGINT UNIQUE NOT NULL REFERENCES profiles(id) ON DELETE CASCADE,
|
||||
hide_fulfilled BOOLEAN DEFAULT TRUE,
|
||||
hide_profile_details BOOLEAN DEFAULT FALSE,
|
||||
hide_for_unauthenticated BOOLEAN DEFAULT FALSE,
|
||||
hide_birthday BOOLEAN DEFAULT FALSE,
|
||||
hide_dates BOOLEAN DEFAULT FALSE,
|
||||
captcha BOOLEAN DEFAULT FALSE,
|
||||
followers_only_interaction BOOLEAN DEFAULT FALSE
|
||||
hide_fulfilled BOOLEAN NOT NULL DEFAULT TRUE,
|
||||
hide_profile_details BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
hide_for_unauthenticated BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
hide_birthday BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
hide_dates BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
captcha BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
followers_only_interaction BOOLEAN NOT NULL DEFAULT FALSE
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user