
    @i                         U d Z ddlmZmZ ddlmZ ddlZdZe	e
d<   dZee	df   e
d<   dZee	ee	   df   e
d	<   dZee	ee	   df   e
d
<   ddZddZy)znCreate quizz models

Revision ID: 50fdb224e8b8
Revises: e66a3c869bc6
Create Date: 2025-12-15 23:03:08.245893

    )SequenceUnion)opN50fdb224e8b8revisione66a3c869bc6down_revisionbranch_labels
depends_onc                     t        j                  dt        j                  dt        j                         d      t        j                  dt        j
                  d      d      t        j                  dt        j
                  d	      d
      t        j                  dt        j                         d
      t        j                  dt        j                         d
      t        j                  dt        j                         d
      t        j                  dt        j                  d
      t        j                  d      d
      t        j                  dt        j                  d
      d
      t        j                  d      
       t        j                  t        j                  d      ddgd       t        j                  dt        j                  dt        j                         d      t        j                  dt        j                         d      t        j                  dt        j                         d      t        j                  dt        j                  ddddd      d      t        j                  dt        j                         d
      t        j                  d t        j                         d      t        j                  d!t        j                         d
      t        j                  dt        j                         d
      t        j                  dt        j                  d
      t        j                  d      d
      t        j                  dt        j                  d
      d
      t        j                  dgd"g      t        j                  d             t        j                  t        j                  d#      ddgd       t        j                  d$t        j                  dt        j                         d      t        j                  dt        j                         d      t        j                  d%t        j                         d      t        j                  d&t        j                         d      t        j                  d't        j                         d
      t        j                  d(t        j                         d
      t        j                  d)t        j                  d
      t        j                  d      d
      t        j                  d*t        j                  d
      d
      t        j                  dgd"g      t        j                  d%gd+g      t        j                  d             t        j                  t        j                  d,      d$dgd       y )-Nquiz_categoriesidF)nullabletitle   )lengthdescriptioni  Tnumber_of_questionspassing_score	is_active
created_at)timezoneznow())server_defaultr   
updated_atix_quiz_categories_id)uniquecategory_questionscategory_idquestionquestion_typeSINGLE_CHOICEMULTIPLE_CHOICETEXTDATEcategoryquestiontype)nameoptions_datacorrect_answer_dataexplanationzquiz_categories.idix_category_questions_idflexible_attemptsuser_idanswersscorepassed
started_atcompleted_atzusers.idix_flexible_attempts_id)r   create_tablesaColumnIntegerStringBooleanDateTimetextPrimaryKeyConstraintcreate_indexfTextEnumJSONForeignKeyConstraint     Y/home/www/lebenam.kofcorporation.com/alembic/versions/50fdb224e8b8_create_quizz_models.pyupgraderE      s   OO%IIdBJJL51IIgryy,u=IImRYYc2TBII#RZZ\DAIIorzz|d;IIk2::<$7IIlBKK6rwwwGWbfgIIlBKK6FD!
 OOBDD013DtfUZ[OO(IIdBJJL51IImRZZ\E:IIj"'')e4IIorww8I6SY`vw  CH  IIInbggi$7II#RWWY?IImRWWY6IIk2::<$7IIlBKK6rwwwGWbfgIIlBKK6F]O.B-CFD! OOBDD346JTF[`aOO'IIdBJJL51IImRZZ\E:IIi6IIiU3IIgrzz|d3IIh

t4IIlBKK6rwwwGWbfgIInbkk484H]O.B-CFYK*8D! OOBDD235H4&Y^_rC   c                  ~   t        j                  t        j                  d      d       t        j                  d       t        j                  t        j                  d      d       t        j                  d       t        j                  t        j                  d      d       t        j                  d       y )Nr2   r+   )
table_namer*   r   r   r   )r   
drop_indexr=   
drop_tablerB   rC   rD   	downgraderJ   C   st    MM"$$01>QRMM%&MM"$$12?STMM&'MM"$$./<MNMM#$rC   )returnN)__doc__typingr   r   alembicr   
sqlalchemyr4   r   str__annotations__r	   r
   r   rE   rJ   rB   rC   rD   <module>rR      st    #   # "0uS$Y 015uS(3--. 5.2
E#x}d*+ 2*`\%rC   