This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 20px 0; font-size: 16px; color: #333">
|
||||
Hello <b>{{name}}</b>,
|
||||
Hello <b>{{NAME}}</b>,
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -45,7 +45,7 @@
|
||||
<tr>
|
||||
<td align="center" style="padding: 30px 0">
|
||||
<a
|
||||
href="{{app_url}}"
|
||||
href="{{APP_URL}}"
|
||||
style="
|
||||
background: #22c55e;
|
||||
color: #fff;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding:20px 0;font-size:16px;color:#333;">
|
||||
Hello <b>{{name}}</b>,
|
||||
Hello <b>{{NAME}}</b>,
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -25,14 +25,14 @@
|
||||
<b style="color:#ef4444;">rejected</b>.
|
||||
<br/><br/>
|
||||
<b>Reason:</b><br/>
|
||||
{{reason}}
|
||||
{{REASON}}
|
||||
<br/><br/>
|
||||
You can update your information and reapply anytime.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" style="padding:30px 0;">
|
||||
<a href="{{app_url}}" style="background:#3b82f6;color:#fff;padding:12px 20px;border-radius:6px;text-decoration:none;">
|
||||
<a href="{{APP_URL}}" style="background:#3b82f6;color:#fff;padding:12px 20px;border-radius:6px;text-decoration:none;">
|
||||
Reapply
|
||||
</a>
|
||||
</td>
|
||||
|
||||
@@ -15,6 +15,7 @@ CREATE TABLE IF NOT EXISTS users (
|
||||
updated_at TIMESTAMPTZ DEFAULT now()
|
||||
);
|
||||
|
||||
ALTER TABLE users DROP CONSTRAINT IF EXISTS check_auth_provider;
|
||||
ALTER TABLE users ADD CONSTRAINT check_auth_provider
|
||||
CHECK (auth_provider IN ('local', 'google', 'facebook', 'github'));
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
CREATE EXTENSION IF NOT EXISTS pg_trgm;
|
||||
|
||||
CREATE TABLE medias (
|
||||
CREATE TABLE IF NOT EXISTS medias (
|
||||
id UUID PRIMARY KEY DEFAULT uuidv7(),
|
||||
user_id UUID REFERENCES users(id) ON DELETE CASCADE,
|
||||
storage_key VARCHAR(255) UNIQUE NOT NULL,
|
||||
|
||||
@@ -39,7 +39,7 @@ CREATE TABLE IF NOT EXISTS user_roles (
|
||||
PRIMARY KEY (user_id, role_id)
|
||||
);
|
||||
|
||||
CREATE TABLE medias (
|
||||
CREATE TABLE IF NOT EXISTS medias (
|
||||
id UUID PRIMARY KEY DEFAULT uuidv7(),
|
||||
user_id UUID REFERENCES users(id) ON DELETE CASCADE,
|
||||
storage_key VARCHAR(255) UNIQUE NOT NULL,
|
||||
|
||||
@@ -2229,6 +2229,7 @@ const docTemplate = `{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {},
|
||||
"errors": {},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -2241,6 +2242,7 @@ const docTemplate = `{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {},
|
||||
"errors": {},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
|
||||
@@ -2222,6 +2222,7 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {},
|
||||
"errors": {},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -2234,6 +2235,7 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {},
|
||||
"errors": {},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
|
||||
@@ -197,6 +197,7 @@ definitions:
|
||||
history-api_internal_dtos_response.CommonResponse:
|
||||
properties:
|
||||
data: {}
|
||||
errors: {}
|
||||
message:
|
||||
type: string
|
||||
status:
|
||||
@@ -205,6 +206,7 @@ definitions:
|
||||
history-api_internal_dtos_response.PaginatedResponse:
|
||||
properties:
|
||||
data: {}
|
||||
errors: {}
|
||||
message:
|
||||
type: string
|
||||
pagination:
|
||||
|
||||
@@ -16,7 +16,7 @@ func (t StatusType) String() string {
|
||||
case StatusApproved:
|
||||
return "APPROVED"
|
||||
case StatusRejected:
|
||||
return "REJECT"
|
||||
return "REJECTED"
|
||||
default:
|
||||
return "UNKNOWN"
|
||||
}
|
||||
@@ -45,7 +45,7 @@ func ParseStatusTypeText(v string) StatusType {
|
||||
return StatusPending
|
||||
case "APPROVED":
|
||||
return StatusApproved
|
||||
case "REJECT":
|
||||
case "REJECTED":
|
||||
return StatusRejected
|
||||
default:
|
||||
return StatusUnknown
|
||||
|
||||
Reference in New Issue
Block a user