Первый запрос на слияние пока никто не видит #1

Merged
Egor_Petrushin merged 4 commits from feature/egor/start into dev 2025-02-14 22:29:27 +04:00
3 changed files with 4 additions and 9 deletions
Showing only changes of commit b83d88f442 - Show all commits

View File

@ -2,13 +2,11 @@ package edu.unive.schedule.domain;
import lombok.Data;
import java.time.LocalDateTime;
@Data
public class Schedule {
private Long id;
private LocalDateTime startTime;
private LocalDateTime endTime;
private int pairNumber;
private Long classroomId;
private Long courseId; // ID курса из внешнего микросервиса
private Long teacherId; // ID преподавателя из внешнего микросервиса

View File

@ -13,10 +13,8 @@ public class ScheduleEntity {
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", nullable = false, unique = true)
private Long id;
@Column(name = "start_time", nullable = false)
private LocalDateTime startTime;
@Column(name = "end_time", nullable = false)
private LocalDateTime endTime;
@Column(name = "pair_number", nullable = false)
private int pairNumber;
@ManyToOne
@JoinColumn(name = "classroom_id")

View File

@ -8,8 +8,7 @@ CREATE TABLE classroom (
CREATE TABLE schedule (
id BIGSERIAL
CONSTRAINT schedule_pk PRIMARY KEY,
start_time TIMESTAMP NOT NULL,
end_time TIMESTAMP NOT NULL,
pair_number INT,
classroom_id BIGINT,
course_id BIGINT,
teacher_id BIGINT,