mirror of
https://github.com/34892002/edgeKey.git
synced 2026-06-05 19:21:43 +08:00
fix: 部署seed
This commit is contained in:
@@ -1,22 +1,23 @@
|
||||
INSERT INTO "Admin" ("username", "passwordHash", "nickname", "status")
|
||||
VALUES ('admin', 'ac0e7d037817094e9e0b4441f9bae3209d67b02fa484917065f71b16109a1a78', '管理员', 'ACTIVE')
|
||||
INSERT INTO "Admin" ("username", "passwordHash", "nickname", "status", "updatedAt")
|
||||
VALUES ('admin', 'ac0e7d037817094e9e0b4441f9bae3209d67b02fa484917065f71b16109a1a78', '管理员', 'ACTIVE', CURRENT_TIMESTAMP)
|
||||
ON CONFLICT("username") DO UPDATE SET
|
||||
"passwordHash" = excluded."passwordHash",
|
||||
"nickname" = excluded."nickname",
|
||||
"status" = excluded."status";
|
||||
"status" = excluded."status",
|
||||
"updatedAt" = CURRENT_TIMESTAMP;
|
||||
|
||||
INSERT INTO "SiteSetting" ("id", "siteName", "siteSubtitle", "notice")
|
||||
VALUES (1, 'EK发卡商城', 'Cloudflare Workers 免费部署自动发卡商城', '全球部署,一触即达。')
|
||||
ON CONFLICT("id") DO NOTHING;
|
||||
|
||||
INSERT INTO "EmailTemplate" ("scene", "name", "subject", "content", "isEnabled")
|
||||
INSERT INTO "EmailTemplate" ("scene", "name", "subject", "content", "isEnabled", "updatedAt")
|
||||
VALUES
|
||||
('TEST', '测试邮件', '[{{siteName}}] 测试邮件', '这是一封测试邮件。
|
||||
|
||||
站点:{{siteName}}
|
||||
发送时间:{{sentAt}}
|
||||
|
||||
{{customContent}}', true),
|
||||
{{customContent}}', true, CURRENT_TIMESTAMP),
|
||||
('ORDER_PAID', '支付成功通知', '[{{siteName}}] 订单 {{orderNo}} 支付成功', '您的订单已支付成功。
|
||||
|
||||
订单号:{{orderNo}}
|
||||
@@ -24,7 +25,7 @@ VALUES
|
||||
金额:{{amount}}
|
||||
查询地址:{{queryUrl}}
|
||||
|
||||
{{footerText}}', true),
|
||||
{{footerText}}', true, CURRENT_TIMESTAMP),
|
||||
('DELIVERY_SUCCESS', '发货成功通知', '[{{siteName}}] 订单 {{orderNo}} 已发货', '您的订单已完成发货。
|
||||
|
||||
订单号:{{orderNo}}
|
||||
@@ -34,7 +35,7 @@ VALUES
|
||||
{{deliveryItems}}
|
||||
|
||||
查询地址:{{queryUrl}}
|
||||
{{supportContact}}', true),
|
||||
{{supportContact}}', true, CURRENT_TIMESTAMP),
|
||||
('DELIVERY_FAILED', '发货失败通知', '[{{siteName}}] 订单 {{orderNo}} 发货失败', '订单发货失败,请尽快处理。
|
||||
|
||||
订单号:{{orderNo}}
|
||||
@@ -42,6 +43,6 @@ VALUES
|
||||
失败原因:{{errorMessage}}
|
||||
|
||||
查询地址:{{queryUrl}}
|
||||
{{supportContact}}', true)
|
||||
{{supportContact}}', true, CURRENT_TIMESTAMP)
|
||||
ON CONFLICT("scene") DO NOTHING;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user