Skip to content

Commit

Permalink
Alter Distributions to support new distribution requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
youngkidwarrior committed Oct 10, 2024
1 parent 644b9fc commit f630392
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
17 changes: 16 additions & 1 deletion supabase/database-generated.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ export type Database = {
created_at: string
distribution_id: number
fixed_value: number
multiplier_max: number
multiplier_min: number
multiplier_step: number
type: Database["public"]["Enums"]["verification_type"]
updated_at: string
}
Expand All @@ -204,6 +207,9 @@ export type Database = {
created_at?: string
distribution_id: number
fixed_value: number
multiplier_max?: number
multiplier_min?: number
multiplier_step?: number
type: Database["public"]["Enums"]["verification_type"]
updated_at?: string
}
Expand All @@ -212,6 +218,9 @@ export type Database = {
created_at?: string
distribution_id?: number
fixed_value?: number
multiplier_max?: number
multiplier_min?: number
multiplier_step?: number
type?: Database["public"]["Enums"]["verification_type"]
updated_at?: string
}
Expand Down Expand Up @@ -1299,7 +1308,13 @@ export type Database = {
key_type_enum: "ES256"
lookup_type_enum: "sendid" | "tag" | "refcode" | "address" | "phone"
tag_status: "pending" | "confirmed"
verification_type: "tag_registration" | "tag_referral"
verification_type:
| "tag_registration"
| "tag_referral"
| "create_passkey"
| "send_ten"
| "send_one_hundred"
| "total_tag_referral"
}
CompositeTypes: {
activity_feed_user: {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ALTER TABLE public.distribution_verification_values
ADD COLUMN multiplier_min NUMERIC(10, 4) NOT NULL DEFAULT 1.0,
ADD COLUMN multiplier_max NUMERIC(10, 4) NOT NULL DEFAULT 1.0,
ADD COLUMN multiplier_step NUMERIC(10, 4) NOT NULL DEFAULT 0.0;

ALTER TYPE public.verification_type
ADD VALUE IF NOT EXISTS 'create_passkey';

ALTER TYPE public.verification_type
ADD VALUE IF NOT EXISTS 'send_ten';

ALTER TYPE public.verification_type
ADD VALUE IF NOT EXISTS 'send_one_hundred';

ALTER TYPE public.verification_type
ADD VALUE IF NOT EXISTS 'total_tag_referral';

0 comments on commit f630392

Please sign in to comment.