mirror of https://github.com/elunez/eladmin
add some tables
parent
5e76a671c6
commit
55911bdc40
|
@ -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 '是否启用'
|
||||||
|
);
|
|
@ -101,6 +101,10 @@ public class Event implements Serializable {
|
||||||
@ApiModelProperty(value = "clubId")
|
@ApiModelProperty(value = "clubId")
|
||||||
private Long clubId;
|
private Long clubId;
|
||||||
|
|
||||||
|
@Column(name = "`public_link`")
|
||||||
|
@ApiModelProperty(value = "publicLink", accessMode = ApiModelProperty.AccessMode.READ_ONLY)
|
||||||
|
private String publicLink;
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@Column(name = "`sport_id`",nullable = false)
|
@Column(name = "`sport_id`",nullable = false)
|
||||||
@ApiModelProperty(value = "sportId")
|
@ApiModelProperty(value = "sportId")
|
||||||
|
|
|
@ -70,6 +70,9 @@ public class EventDto implements Serializable {
|
||||||
@ApiModelProperty(value = "clubId")
|
@ApiModelProperty(value = "clubId")
|
||||||
private Long clubId;
|
private Long clubId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "publicLink")
|
||||||
|
private String publicLink;
|
||||||
|
|
||||||
@ApiModelProperty(value = "sportId")
|
@ApiModelProperty(value = "sportId")
|
||||||
private Long sportId;
|
private Long sportId;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue