Skip to content

Conversation

@Angeluz-07
Copy link
Contributor

Fixes #67

Copy link
Contributor

@EliuX EliuX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KUDOS, just check out this recommendation.

description = db.Column(db.String(COMMENTS_MAX_LENGTH), unique=False, nullable=False)
parent_id = db.Column(UUIDType(binary=False), default=uuid.uuid4)
customer_id = db.Column(UUIDType(binary=False), default=uuid.uuid4)
deleted = db.Column(UUIDType(binary=False), default=uuid.uuid4)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and the other SQL models should inherit from AuditedSQLModel. AuditedSQLModel should also contain the common fields, as deleted and if possible add to it an auto-calculated attribute called visible which is True if the next condition is:

self.deleted == None

@Angeluz-07 Angeluz-07 merged commit 3767cda into master Apr 7, 2020
@Angeluz-07 Angeluz-07 deleted the feature/add-projectype-and-customer-model#67 branch April 9, 2020 20:33
@Angeluz-07 Angeluz-07 restored the feature/add-projectype-and-customer-model#67 branch April 9, 2020 20:33
@Angeluz-07 Angeluz-07 deleted the feature/add-projectype-and-customer-model#67 branch April 9, 2020 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create ProjectType and Customer Models with current implementation

3 participants