Ignore:
Timestamp:
08/22/26 19:00:38 (8 hours ago)
Author:
veronika-ils <ilioskaveronika@…>
Branches:
master
Parents:
ae83647
Message:

feat: The app is consistent with the changes made in phase 1 and phase 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • petify-backend/sql/ddl.sql

    rae83647 rf6ed6e4  
    107107                             city      VARCHAR(80)  NOT NULL,
    108108                             address   VARCHAR(200) NOT NULL,
     109                             work_days VARCHAR(120),
     110                             start_time TIME,
     111                             end_time   TIME,
    109112                             user_id   BIGINT       UNIQUE,
    110113                             application_id BIGINT UNIQUE,
     
    227230                              review_id      BIGINT,
    228231                              target_user_id BIGINT NOT NULL,
     232                              interaction_type VARCHAR(40) NOT NULL,
    229233
    230234                              CONSTRAINT user_reviews_PK PRIMARY KEY (review_id),
     
    234238                              CONSTRAINT user_reviews_target_FK FOREIGN KEY (target_user_id)
    235239                                  REFERENCES users(user_id)
    236                                   ON DELETE RESTRICT
     240                                  ON DELETE RESTRICT,
     241                              CONSTRAINT user_reviews_interaction_type_CHK CHECK (
     242                                  interaction_type IN ('EVENT', 'PERSONAL_INTERACTION', 'ONLINE', 'PHONE_CALL', 'OTHER')
     243                              )
    237244);
    238245
Note: See TracChangeset for help on using the changeset viewer.