feat: importer IMVU accounts and settings from the console (#14)
Co-authored-by: dhkatz <[email protected]>
This commit was merged in pull request #14.
This commit is contained in:
1 parent
7ece681eef
commit
e6a97be894
16 files changed
+5538
-13
No files matched your search
@@ -0,0 +1,27 @@
|
||||
CREATE TABLE "importer_account" (
|
||||
"id" text PRIMARY KEY NOT NULL,
|
||||
"catalog_id" text NOT NULL,
|
||||
"imvu_id" bigint NOT NULL,
|
||||
"username" text NOT NULL,
|
||||
"position" integer NOT NULL,
|
||||
"sealed" text,
|
||||
"sealed_for" text,
|
||||
"sealed_at" timestamp with time zone,
|
||||
"state" text DEFAULT 'waiting' NOT NULL,
|
||||
"state_message" text DEFAULT '' NOT NULL,
|
||||
"state_at" timestamp with time zone DEFAULT now() NOT NULL,
|
||||
"access_pass" boolean DEFAULT false NOT NULL,
|
||||
"age_verified" boolean DEFAULT false NOT NULL,
|
||||
"added_by" text,
|
||||
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
||||
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
||||
);
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "catalog" ADD COLUMN "importer_public_key" text;--> statement-breakpoint
|
||||
ALTER TABLE "catalog" ADD COLUMN "importer_fingerprint" text;--> statement-breakpoint
|
||||
ALTER TABLE "catalog" ADD COLUMN "importer_version" text DEFAULT '' NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "catalog" ADD COLUMN "importer_seen_at" timestamp with time zone;--> statement-breakpoint
|
||||
ALTER TABLE "catalog" ADD COLUMN "importer_settings" jsonb DEFAULT '{"rate":2,"concurrency":2}'::jsonb NOT NULL;--> statement-breakpoint
|
||||
ALTER TABLE "importer_account" ADD CONSTRAINT "importer_account_catalog_id_catalog_id_fk" FOREIGN KEY ("catalog_id") REFERENCES "public"."catalog"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
||||
ALTER TABLE "importer_account" ADD CONSTRAINT "importer_account_added_by_user_id_fk" FOREIGN KEY ("added_by") REFERENCES "public"."user"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX "importer_account_imvu" ON "importer_account" USING btree ("catalog_id","imvu_id");
|
||||
Reference in new issue
Block a user