added reviews

This commit is contained in:
SlimusMinus
2026-06-23 00:09:57 +03:00
parent c80cbdf976
commit c49f2d108b
11 changed files with 181 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
databaseChangeLog:
- changeSet:
id: 008-create-reviews
author: you
changes:
- createTable:
tableName: reviews
columns:
- column: { name: id, type: BIGSERIAL, constraints: { primaryKey: true } }
- column: { name: author_name, type: VARCHAR(255) }
- column: { name: rating, type: INTEGER, constraints: { nullable: false } }
- column: { name: text, type: VARCHAR(500) }
- column: { name: created_at, type: TIMESTAMP, constraints: { nullable: false } }

View File

@@ -13,4 +13,5 @@ databaseChangeLog:
- include: { file: db/changelog/add/012-add-email-role.yaml }
- include: { file: db/changelog/add/003-add-phone-posts.yaml }
- include: { file: db/changelog/add/004-add-fields-user.yaml }
- include: { file: db/changelog/add/005-add-user-avatarUrl.yaml }
- include: { file: db/changelog/add/005-add-user-avatarUrl.yaml }
- include: { file: db/changelog/create/008-create-reviews.yaml }