ALTER TABLE "decks" DROP CONSTRAINT "source_language_check";--> statement-breakpoint
ALTER TABLE "decks" DROP CONSTRAINT "validated_languages_check";--> statement-breakpoint
ALTER TABLE "term_glosses" DROP CONSTRAINT "language_code_check";--> statement-breakpoint
ALTER TABLE "terms" DROP CONSTRAINT "pos_check";--> statement-breakpoint
ALTER TABLE "translations" DROP CONSTRAINT "language_code_check";--> statement-breakpoint
ALTER TABLE "lobbies" ALTER COLUMN "status" SET DEFAULT 'waiting';--> statement-breakpoint
ALTER TABLE "term_glosses" ADD COLUMN "description" text;--> statement-breakpoint
ALTER TABLE "decks" ADD CONSTRAINT "source_language_check" CHECK ("decks"."source_language" IN ('en', 'it', 'de', 'fr', 'es'));--> statement-breakpoint
ALTER TABLE "decks" ADD CONSTRAINT "validated_languages_check" CHECK (validated_languages <@ ARRAY['en', 'it', 'de', 'fr', 'es']::varchar[]);--> statement-breakpoint
ALTER TABLE "term_glosses" ADD CONSTRAINT "language_code_check" CHECK ("term_glosses"."language_code" IN ('en', 'it', 'de', 'fr', 'es'));--> statement-breakpoint
ALTER TABLE "terms" ADD CONSTRAINT "pos_check" CHECK ("terms"."pos" IN ('noun', 'verb', 'adjective', 'adverb'));--> statement-breakpoint
ALTER TABLE "translations" ADD CONSTRAINT "language_code_check" CHECK ("translations"."language_code" IN ('en', 'it', 'de', 'fr', 'es'));