Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
fix: regenerate migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Mar 2, 2024
1 parent 58f1d9c commit 444c33e
Show file tree
Hide file tree
Showing 17 changed files with 175 additions and 6,238 deletions.
241 changes: 0 additions & 241 deletions packages/kanao-schema/drizzle/0000_futuristic_mole_man.sql

This file was deleted.

154 changes: 154 additions & 0 deletions packages/kanao-schema/drizzle/0000_last_omega_sentinel.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
CREATE TABLE IF NOT EXISTS "members" (
"id" text NOT NULL,
"guild_id" text NOT NULL,
"nick" text,
"avatar" text,
"flags" integer,
"joined_at" text,
"premium_since" text,
"deaf" boolean,
"mute" boolean,
"pending" boolean,
"communication_disabled_until" text
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "users" (
"id" text PRIMARY KEY NOT NULL,
"username" text NOT NULL,
"discriminator" text,
"global_name" text,
"avatar" text,
"bot" boolean,
"flags" integer,
"premium_type" integer,
"public_flags" integer,
"avatar_decoration" text,
"locale" text,
"accent_color" integer,
"banner" text,
"mfa_enabled" boolean
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "member_roles" (
"member_id" text NOT NULL,
"role_id" text NOT NULL,
"guild_id" text NOT NULL,
CONSTRAINT "voice_states_member_id_role_id_guild_id" PRIMARY KEY("member_id","role_id")
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "roles" (
"id" text PRIMARY KEY NOT NULL,
"name" text,
"color" integer,
"hoist" boolean,
"position" integer,
"permissions" text,
"guild_id" text
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "guilds" (
"id" text PRIMARY KEY NOT NULL,
"unavailable" boolean,
"name" text,
"icon" text,
"icon_hash" text,
"splash" text,
"discovery_splash" text,
"owner" boolean,
"owner_id" text,
"permissions" text,
"region" text,
"afk_channel_id" text,
"afk_timeout" integer,
"widget_enabled" boolean,
"widget_channel_id" text,
"verification_level" integer,
"default_message_notifications" integer,
"explicit_content_filter" integer,
"mfa_level" integer,
"system_channel_id" text,
"system_channel_flags" integer,
"rules_channel_id" text,
"max_presences" integer,
"max_members" integer,
"vanity_url_code" text,
"description" text,
"banner" text,
"premium_tier" integer,
"premium_subscription_count" integer,
"preferred_locale" text,
"public_updates_channel_id" text,
"max_video_channel_users" integer,
"approximate_member_count" integer,
"approximate_presence_count" integer,
"nsfw_level" integer,
"premium_progress_bar_enabled" boolean,
"safety_alert_channel_id" text
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "channels" (
"id" text PRIMARY KEY NOT NULL,
"type" integer,
"position" integer,
"name" text,
"topic" text,
"nsfw" boolean,
"last_message_id" text,
"bitrate" integer,
"user_limit" integer,
"rate_limit_per_user" integer,
"icon" text,
"owner_id" text,
"parent_id" text,
"last_pin_timestamp" text,
"rtc_region" text,
"video_quality_mode" integer,
"message_count" integer,
"default_auto_archive_duration" integer,
"flags" integer,
"guild_id" text
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "channels_overwrite" (
"user_or_role" text,
"channel_id" text,
"type" integer,
"allow" text,
"deny" text,
CONSTRAINT "channels_overwrite_user_or_role_channel_id" PRIMARY KEY("user_or_role","channel_id")
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "voice_states" (
"member_id" text NOT NULL,
"guild_id" text NOT NULL,
"channel_id" text NOT NULL,
"session_id" text,
"deaf" boolean,
"mute" boolean,
"self_deaf" boolean,
"self_mute" boolean,
"self_stream" boolean,
"self_video" boolean,
"suppress" boolean,
"request_to_speak_timestamp" text,
CONSTRAINT "voice_states_member_id_guild_id" PRIMARY KEY("member_id","guild_id")
);
--> statement-breakpoint
CREATE TABLE IF NOT EXISTS "messages" (
"id" text PRIMARY KEY NOT NULL,
"channel_id" text NOT NULL,
"author_id" text NOT NULL,
"guild_id" text,
"content" text,
"timestamp" text,
"edited_timestamp" text,
"tts" boolean,
"mention_everyone" boolean,
"nonce" text,
"pinned" boolean,
"webhook_id" text,
"type" integer,
"application_id" text,
"flags" integer,
"position" integer
);
1 change: 0 additions & 1 deletion packages/kanao-schema/drizzle/0001_oval_chronomancer.sql

This file was deleted.

Loading

0 comments on commit 444c33e

Please sign in to comment.