Skip to content

feat: Add VenueBooking and Venue models for booking management#393

Open
SavioNYJC wants to merge 2 commits intoweeklyfrom
391-booking-model-and-resource
Open

feat: Add VenueBooking and Venue models for booking management#393
SavioNYJC wants to merge 2 commits intoweeklyfrom
391-booking-model-and-resource

Conversation

@SavioNYJC
Copy link

No description provided.

@SavioNYJC SavioNYJC self-assigned this Mar 20, 2026
@SavioNYJC SavioNYJC requested a review from ngjunsiang March 20, 2026 03:47
@SavioNYJC
Copy link
Author

@ngjunsiang could you please help to review my models?

Copy link
Contributor

@ngjunsiang ngjunsiang left a comment

Choose a reason for hiding this comment

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

Should be okay to merge after changing the user_id annotation

Comment on lines +10 to +13
# NOTE: Assumes reusing the same object is not an issue
unique_field = field(metadata={
"constraints": [constraints.UNIQUE],
})
Copy link
Contributor

Choose a reason for hiding this comment

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

Not required

id: schema.CampusID = field(default_factory=(
lambda: uid.generate_category_uid("booking", length=8)
))
user_id: schema.CampusID
Copy link
Contributor

Choose a reason for hiding this comment

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

should be schema.UserID

@ngjunsiang ngjunsiang mentioned this pull request Mar 22, 2026
2 tasks
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.

2 participants