web sttarting
This commit is contained in:
@@ -8,10 +8,7 @@ class Organization(Base):
|
||||
__tablename__ = "organization"
|
||||
|
||||
id = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)
|
||||
name_organization = Column(String(150), nullable=False)
|
||||
group_id = Column(UUID(as_uuid=True), ForeignKey("group.id", ondelete="CASCADE"), nullable=False)
|
||||
|
||||
group = relationship("Group", backref="organizations", passive_deletes=True)
|
||||
name_organization = Column(String(150), nullable=False, unique=True)
|
||||
|
||||
__all__ = ["Base", "Organization"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user