add fixes to claims and seasons

This commit is contained in:
JCEEE
2026-07-30 11:12:35 +01:00
parent 57ef30d3a7
commit b254564436
24 changed files with 2517 additions and 704 deletions
+22 -1
View File
@@ -131,6 +131,7 @@ async function main() {
text("inviteCode"),
text("stripeCustomerId"),
jsonField("featureFlags"),
jsonField("seasons"),
],
});
@@ -263,8 +264,9 @@ async function main() {
text("label", true),
number("value", true),
select("rewardType", ["cash", "prize", "points"], true),
bool("claimed"),
select("status", ["unclaimed", "requested", "claimed"], true),
date("claimedAt"),
date("requestedAt"),
text("date"),
],
});
@@ -285,6 +287,25 @@ async function main() {
select("type", ["points", "money"], true),
number("value", true),
text("customName"),
jsonField("seasonIds"),
],
});
ids.seasons = await createCollection(token, {
name: "seasons",
type: "base",
listRule: "",
viewRule: "",
createRule: null,
updateRule: null,
deleteRule: null,
fields: [
rel("famId", ids.fams!, true),
text("name", true),
text("color"),
bool("active"),
date("autoDisable"),
date("autoStart"),
],
});