ㅊ
Tables (9)
categories
- category_id — INT — Primary key — NOT NULL
- category_name — VARCHAR(100) — NOT NULL
certifications
- cert_id — BIGINT — Primary key — NOT NULL
- trainer_id — BIGINT — Foreign key → trainers.trainer_id — NOT NULL
- cert_name — VARCHAR(255) — NOT NULL
- issuing_body — VARCHAR(255)
- issue_date — DATE
- file_url — VARCHAR(500)
- approved — BOOLEAN — NOT NULL
- created_at — TIMESTAMP — NOT NULL
- INDEX — `fk_certifications_trainers_idx`
community_comments
- comment_id — BIGINT — Primary key — NOT NULL
- post_id — BIGINT — Foreign key → community_posts.post_id — NOT NULL
- user_id — BIGINT — Foreign key → pet_users.user_id — NOT NULL
- parent_comment_id — BIGINT — Foreign key → community_comments.comment_id
- content — TEXT — NOT NULL
- created_at — TIMESTAMP — NOT NULL
- updated_at — TIMESTAMP — NOT NULL
- INDEX — `fk_comments_posts_idx`
- INDEX — `fk_comments_users_idx`
- INDEX — `fk_comments_parent_idx`
community_posts
- post_id — BIGINT — Primary key — NOT NULL
- post_category_id — INT — NOT NULL
- pet_category_id — INT
- user_id — BIGINT — Foreign key → pet_users.user_id — NOT NULL
- title — VARCHAR(255) — NOT NULL
- content — TEXT — NOT NULL
- image_url — VARCHAR(500)
- video_url — VARCHAR(500)
- created_at — TIMESTAMP — NOT NULL
- updated_at — TIMESTAMP — NOT NULL
- INDEX — `fk_community_posts_users_idx`
pet_users
- user_id — BIGINT — Primary key — NOT NULL
- role — VARCHAR(50) — NOT NULL
- nickname — VARCHAR(100) — NOT NULL
- profile_image_url — VARCHAR(500)
- status — VARCHAR(50) — NOT NULL
- created_at — TIMESTAMP — NOT NULL
- updated_at — TIMESTAMP — NOT NULL
post_likes
- like_id — BIGINT — Primary key — NOT NULL
- post_id — BIGINT — Foreign key → community_posts.post_id — NOT NULL
- user_id — BIGINT — Foreign key → pet_users.user_id — NOT NULL
- created_at — TIMESTAMP — NOT NULL
reviews
- review_id — BIGINT — Primary key — NOT NULL
- match_id — BIGINT — NOT NULL
- rating — DECIMAL(2,1) — NOT NULL
- comment — TEXT
- created_at — TIMESTAMP — NOT NULL
- updated_at — TIMESTAMP — NOT NULL
symptom_categories
- symptom_id — INT — Primary key — NOT NULL
- symptom_name — VARCHAR(100) — NOT NULL
trainers
- trainer_id — BIGINT — Foreign key → pet_users.user_id — NOT NULL
- introduction — TEXT
- experience_years — INT
- specializations — JSON
- visit_cost_per_hour — DECIMAL(10,2)
- available_time — VARCHAR(500)
- approved_at — TIMESTAMP
- created_at — TIMESTAMP — NOT NULL
- updated_at — TIMESTAMP — NOT NULL