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