diff --git a/support-portal-backend/src/main/java/net/shyshkin/study/fullstack/supportportal/backend/domain/Event.java b/support-portal-backend/src/main/java/net/shyshkin/study/fullstack/supportportal/backend/domain/Event.java index 3eaa98e..44867ce 100644 --- a/support-portal-backend/src/main/java/net/shyshkin/study/fullstack/supportportal/backend/domain/Event.java +++ b/support-portal-backend/src/main/java/net/shyshkin/study/fullstack/supportportal/backend/domain/Event.java @@ -19,7 +19,7 @@ public class Event { @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; - @Column(nullable = false, unique = true) + @Column private String code; @Column(nullable = false) diff --git a/support-portal-frontend/src/app/component/event-form/event-form.component.html b/support-portal-frontend/src/app/component/event-form/event-form.component.html index c4fdaa9..cc0b864 100644 --- a/support-portal-frontend/src/app/component/event-form/event-form.component.html +++ b/support-portal-frontend/src/app/component/event-form/event-form.component.html @@ -28,7 +28,7 @@
diff --git a/support-portal-frontend/src/app/component/event-form/event-form.component.ts b/support-portal-frontend/src/app/component/event-form/event-form.component.ts index 0d4ed07..e9b06ab 100644 --- a/support-portal-frontend/src/app/component/event-form/event-form.component.ts +++ b/support-portal-frontend/src/app/component/event-form/event-form.component.ts @@ -28,7 +28,7 @@ export class EventFormComponent implements OnInit { ngOnInit() { this.eventForm = this.fb.group({ - code: ['', Validators.required], + code: [''], year: ['', Validators.required], subject: ['', Validators.required], title: ['', Validators.required],