add some tables

pull/882/head
chanhengseang 2025-05-18 19:07:54 -07:00
parent 5e76a671c6
commit 55911bdc40
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,27 @@
alter table event
add column public_link varchar(255);
create table match_group
(
id bigint auto_increment primary key,
create_time datetime,
size int default 2 not null,
name varchar(255) not null,
score int default 0
);
create table group_player
(
id bigint auto_increment primary key,
player_id bigint not null references player (id),
group_id bigint not null references match_group (id)
);
create table sport_match
(
id bigint auto_increment primary key,
event_id bigint not null references event (id),
name varchar(32) not null comment '名称',
create_time datetime null comment '创建时间',
enabled bit null comment '是否启用'
);

View File

@ -101,6 +101,10 @@ public class Event implements Serializable {
@ApiModelProperty(value = "clubId")
private Long clubId;
@Column(name = "`public_link`")
@ApiModelProperty(value = "publicLink", accessMode = ApiModelProperty.AccessMode.READ_ONLY)
private String publicLink;
@NotNull
@Column(name = "`sport_id`",nullable = false)
@ApiModelProperty(value = "sportId")

View File

@ -70,6 +70,9 @@ public class EventDto implements Serializable {
@ApiModelProperty(value = "clubId")
private Long clubId;
@ApiModelProperty(value = "publicLink")
private String publicLink;
@ApiModelProperty(value = "sportId")
private Long sportId;