@@ -144,17 +144,6 @@ class ModerationReasonEnum(StrEnum):
144144 spam = "spam"
145145
146146
147- class PremiumFeature (StrEnum ):
148- survey = "survey"
149- event_ticket = "event_ticket"
150- analysis_variants = "analysis_variants"
151-
152-
153- class DirectoryVisibility (StrEnum ):
154- listed = "listed"
155- unlisted = "unlisted"
156-
157-
158147class SurveyQuestionType (StrEnum ):
159148 choice = "choice"
160149 free_text = "free_text"
@@ -677,47 +666,6 @@ class Opinion(Base):
677666 last_reacted_at : Mapped [datetime ] = mapped_column (DateTime )
678667
679668
680- class PremiumFeatureEntitlement (Base ):
681- __tablename__ = "premium_feature_entitlement"
682-
683- id : Mapped [int ] = mapped_column (Integer , primary_key = True , autoincrement = True )
684- organization_id : Mapped [int ] = mapped_column (Integer )
685- feature : Mapped [PremiumFeature ] = mapped_column (
686- SaEnum (PremiumFeature , values_callable = _enum_values , native_enum = False ),
687- )
688- starts_at : Mapped [datetime ] = mapped_column (DateTime )
689- expires_at : Mapped [datetime | None ] = mapped_column (DateTime , nullable = True )
690- revoked_at : Mapped [datetime | None ] = mapped_column (DateTime , nullable = True )
691- admin_note : Mapped [str | None ] = mapped_column (Text , nullable = True )
692- created_by_user_id : Mapped [uuid_pkg .UUID | None ] = mapped_column (Uuid , nullable = True )
693- updated_by_user_id : Mapped [uuid_pkg .UUID | None ] = mapped_column (Uuid , nullable = True )
694- created_at : Mapped [datetime ] = mapped_column (DateTime )
695- updated_at : Mapped [datetime ] = mapped_column (DateTime )
696-
697-
698- class ProjectOrganizationOwnership (Base ):
699- __tablename__ = "project_organization_ownership"
700-
701- id : Mapped [int ] = mapped_column (Integer , primary_key = True , autoincrement = True )
702- project_id : Mapped [int ] = mapped_column (Integer )
703- organization_id : Mapped [int ] = mapped_column (Integer )
704- created_at : Mapped [datetime ] = mapped_column (DateTime )
705-
706-
707- class Project (Base ):
708- __tablename__ = "project"
709-
710- id : Mapped [int ] = mapped_column (Integer , primary_key = True , autoincrement = True )
711- slug : Mapped [str ] = mapped_column (String (65 ))
712- display_name : Mapped [str ] = mapped_column (String (65 ))
713- directory_visibility : Mapped [DirectoryVisibility ] = mapped_column (
714- SaEnum (DirectoryVisibility , values_callable = _enum_values , native_enum = False ),
715- )
716- auto_provisioned_for_organization_id : Mapped [int | None ] = mapped_column (Integer , nullable = True )
717- created_at : Mapped [datetime ] = mapped_column (DateTime )
718- updated_at : Mapped [datetime ] = mapped_column (DateTime )
719-
720-
721669class RealtimeEventOutbox (Base ):
722670 __tablename__ = "realtime_event_outbox"
723671
0 commit comments