@@ -196,12 +196,15 @@ class DNAAlignFeatureAttrib(Base):
196196 Index ("ditag_value_idx" , "value" , mysql_length = 10 ),
197197 )
198198
199- dna_align_feature_attrib_id : Column = Column (INTEGER (10 ), primary_key = True )
200199 dna_align_feature_id : Column = Column (
201- INTEGER (10 ), ForeignKey ("dna_align_feature.dna_align_feature_id" ), nullable = False , index = True
200+ INTEGER (10 ),
201+ ForeignKey ("dna_align_feature.dna_align_feature_id" ),
202+ nullable = False ,
203+ index = True ,
204+ primary_key = True ,
202205 )
203- attrib_type_id : Column = Column (SMALLINT (5 ), nullable = False )
204- value : Column = Column (Text , nullable = False )
206+ attrib_type_id : Column = Column (SMALLINT (5 ), nullable = False , primary_key = True )
207+ value : Column = Column (String ( 500 ) , nullable = False , primary_key = True )
205208
206209
207210class ExternalDb (Base ):
@@ -415,10 +418,11 @@ class RNAproductAttrib(Base):
415418 Index ("rnaproduct_type_val_idx" , "attrib_type_id" , "value" , mysql_length = {"value" : 10 }),
416419 Index ("rnaproduct_value_idx" , "value" , mysql_length = 10 ),
417420 )
418- rnaproduct_attrib_id : Column = Column (INTEGER (10 ), primary_key = True )
419- rnaproduct_id : Column = Column (ForeignKey ("rnaproduct.rnaproduct_id" ), nullable = False , index = True )
420- attrib_type_id : Column = Column (SMALLINT (5 ), nullable = False )
421- value : Column = Column (Text , nullable = False )
421+ rnaproduct_id : Column = Column (
422+ ForeignKey ("rnaproduct.rnaproduct_id" ), nullable = False , index = True , primary_key = True
423+ )
424+ attrib_type_id : Column = Column (SMALLINT (5 ), nullable = False , primary_key = True )
425+ value : Column = Column (String (500 ), nullable = False , primary_key = True )
422426
423427
424428class RnaproductType (Base ):
@@ -652,21 +656,22 @@ class GeneAttrib(Base):
652656 Index ("gene_attrib_value_idx" , "value" , mysql_length = 10 ),
653657 )
654658
655- gene_attrib_id : Column = Column (INTEGER (10 ), primary_key = True )
656659 gene_id : Column = Column (
657660 INTEGER (10 ),
658661 ForeignKey ("gene.gene_id" ),
659662 nullable = False ,
660663 index = True ,
661664 server_default = text ("'0'" ),
665+ primary_key = True ,
662666 )
663667 attrib_type_id : Column = Column (
664668 SMALLINT (5 ),
665669 ForeignKey ("attrib_type.attrib_type_id" ),
666670 nullable = False ,
667671 server_default = text ("'0'" ),
672+ primary_key = True ,
668673 )
669- value : Column = Column (Text , nullable = False )
674+ value : Column = Column (String ( 500 ) , nullable = False , primary_key = True )
670675
671676
672677class MarkerMapLocation (Base ):
@@ -862,21 +867,22 @@ class TranscriptAttrib(Base):
862867 Index ("transcript_attrib_value_idx" , "value" , mysql_length = 10 ),
863868 )
864869
865- transcript_attrib_id : Column = Column (INTEGER (10 ), primary_key = True )
866870 transcript_id : Column = Column (
867871 INTEGER (10 ),
868872 ForeignKey ("transcript.transcript_id" ),
869873 nullable = False ,
870874 index = True ,
871875 server_default = text ("'0'" ),
876+ primary_key = True ,
872877 )
873878 attrib_type_id : Column = Column (
874879 SMALLINT (5 ),
875880 ForeignKey ("attrib_type.attrib_type_id" ),
876881 nullable = False ,
877882 server_default = text ("'0'" ),
883+ primary_key = True ,
878884 )
879- value : Column = Column (Text , nullable = False )
885+ value : Column = Column (String ( 500 ) , nullable = False , primary_key = True )
880886
881887
882888class TranscriptSupportingFeature (Base ):
@@ -904,7 +910,7 @@ class TranscriptSupportingFeature(Base):
904910
905911
906912class TranslationAttrib (Base ):
907- __tablename__ = ( "translation_attrib" ,)
913+ __tablename__ = "translation_attrib"
908914 __table_args__ = (
909915 Index ("translation_attrib_type_val_idx" , "attrib_type_id" , "value" , mysql_length = {"value" : 10 }),
910916 Index (
@@ -918,19 +924,20 @@ class TranslationAttrib(Base):
918924 Index ("translation_attrib_value_idx" , "value" , mysql_length = 10 ),
919925 )
920926
921- translation_attrib_id : Column = Column (INTEGER (10 ), primary_key = True )
922927 translation_id : Column = Column (
923928 ForeignKey ("translation.translation_id" ),
924929 nullable = False ,
925930 index = True ,
926931 server_default = text ("'0'" ),
932+ primary_key = True ,
927933 )
928934 attrib_type_id : Column = Column (
929935 ForeignKey ("attrib_type.attrib_type_id" ),
930936 nullable = False ,
931937 server_default = text ("'0'" ),
938+ primary_key = True ,
932939 )
933- value : Column = Column (Text , nullable = False )
940+ value : Column = Column (String ( 500 ) , nullable = False , primary_key = True )
934941
935942
936943class UnmappedObject (Base ):
@@ -1850,21 +1857,22 @@ class MiscAttrib(Base):
18501857 Index ("misc_attrib_value_idx" , "value" , mysql_length = 10 ),
18511858 )
18521859
1853- misc_attrib_id : Column = Column (INTEGER (10 ), primary_key = True )
18541860 misc_feature_id : Column = Column (
18551861 INTEGER (10 ),
18561862 ForeignKey ("misc_feature.misc_feature_id" ),
18571863 nullable = False ,
18581864 index = True ,
18591865 server_default = text ("'0'" ),
1866+ primary_key = True ,
18601867 )
18611868 attrib_type_id : Column = Column (
18621869 SMALLINT (5 ),
18631870 ForeignKey ("attrib_type.attrib_type_id" ),
18641871 nullable = False ,
18651872 server_default = text ("'0'" ),
1873+ primary_key = True ,
18661874 )
1867- value : Column = Column (Text , nullable = False )
1875+ value : Column = Column (String ( 500 ) , nullable = False , primary_key = True )
18681876
18691877
18701878class OntologyXref (Base ):
0 commit comments