release-新增表tb_band_info和tb_band_operator

release-2024-08-08
pikaqiudeshujia 9 months ago
parent 74b530fedb
commit ec837bcbd7

@ -0,0 +1,16 @@
package com.luoo.user.dao;
import com.luoo.user.pojo.BandInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
/**
* @Author: yawei.huang
* @Package: com.luoo.user.dao
* @Project: luoo_parent
* @Date: 2024/4/26 8:44
* @Filename: BandInfoDao
* @Describe:
*/
public interface BandInfoDao extends JpaRepository<BandInfo,String>, JpaSpecificationExecutor<BandInfo> {
}

@ -0,0 +1,16 @@
package com.luoo.user.dao;
import com.luoo.user.pojo.BandOperator;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
/**
* @Author: yawei.huang
* @Package: com.luoo.user.dao
* @Project: luoo_parent
* @Date: 2024/4/26 8:44
* @Filename: BandOperatorDao
* @Describe:
*/
public interface BandOperatorDao extends JpaRepository<BandOperator,String>, JpaSpecificationExecutor<BandOperator> {
}

@ -0,0 +1,49 @@
package com.luoo.user.pojo;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
/**
* @Author: yawei.huang
* @Package: com.luoo.user.pojo
* @Project: luoo_parent
* @Date: 2024/4/26 8:33
* @Filename: BandInfo
* @Describe:
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Builder
@Entity
@Table(name="tb_band_info")
public class BandInfo implements Serializable {
@Id
@ApiModelProperty("id")
private String id;
@ApiModelProperty("tb_user表id")
private String userId;
@ApiModelProperty("所在地区")
private String address;
@ApiModelProperty("统一社会信用代码")
private String companyCode;
@ApiModelProperty("公司名称")
private String companyName;
@ApiModelProperty("法人")
private String legalPerson;
@ApiModelProperty("营业执照url")
private String businessLicense;
}

@ -0,0 +1,68 @@
package com.luoo.user.pojo;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* @Author: yawei.huang
* @Package: com.luoo.user.pojo
* @Project: luoo_parent
* @Date: 2024/4/26 8:39
* @Filename: BandOperator
* @Describe:
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Builder
@Entity
@Table(name = "tb_band_operator")
public class BandOperator {
/**
*
*/
@Id
@ApiModelProperty("id")
private String id;
/**
* tb_user_infoid
*/
@ApiModelProperty("tb_user_info表id")
private String userId;
/**
*
*/
@ApiModelProperty("真实姓名")
private String name;
/**
*
*/
@ApiModelProperty("手机号")
private String mobile;
/**
*
*/
@ApiModelProperty("身份证号")
private String idCard;
/**
*
*/
@ApiModelProperty("联系邮箱")
private String email;
/**
* url
*/
@ApiModelProperty("授权书url")
private String authorization;
/**
* url
*/
@ApiModelProperty("作品url")
private String works;
}

@ -0,0 +1,27 @@
create table tb_band_info
(
id varchar(20) not null comment 'id'
primary key,
user_id varchar(20) null comment 'tb_user_info表id',
address varchar(255) null comment '所在地区',
company_code varchar(50) null comment '统一社会信用代码',
company_name varchar(255) null comment '公司名称',
legal_person varchar(50) null comment '法人',
business_license varchar(255) null comment '营业执照url'
)
comment '厂牌基础信息';
create table tb_band_operator
(
id varchar(20) not null
primary key,
user_id varchar(20) null comment 'tb_user_info表id',
name varchar(255) null comment '真实姓名',
mobile varchar(255) null comment '手机号',
id_card varchar(50) null comment '身份证号',
email varchar(255) null comment '联系邮箱',
authorization varchar(255) null comment '授权书url',
works varchar(255) null comment '作品url'
)
comment '厂牌运营人';
Loading…
Cancel
Save