|
@@ -0,0 +1,999 @@
|
|
|
|
+package main
|
|
|
|
+
|
|
|
|
+import "time"
|
|
|
|
+
|
|
|
|
+// CompanyBase 企业基本信息
|
|
|
|
+type CompanyBase struct {
|
|
|
|
+ ID int64 `gorm:"primaryKey;column:id" json:"id"`
|
|
|
|
+ CompanyID string `gorm:"unique;column:company_id;type:char(32)" json:"company_id"`
|
|
|
|
+ ProvinceShort string `gorm:"column:province_short;type:varchar(5)" json:"province_short"`
|
|
|
|
+ CompanyName string `gorm:"column:company_name;type:varchar(255);index" json:"company_name"`
|
|
|
|
+ CompanyCode string `gorm:"column:company_code;type:varchar(50);index" json:"company_code"`
|
|
|
|
+ CreditNo string `gorm:"column:credit_no;type:varchar(50);index" json:"credit_no"`
|
|
|
|
+ OrgCode string `gorm:"column:org_code;type:varchar(20)" json:"org_code"`
|
|
|
|
+ TaxCode string `gorm:"column:tax_code;type:varchar(50)" json:"tax_code"`
|
|
|
|
+ EstablishDate *time.Time `gorm:"column:establish_date;type:date" json:"establish_date"`
|
|
|
|
+ LegalPerson string `gorm:"column:legal_person;type:varchar(255)" json:"legal_person"`
|
|
|
|
+ LegalPersonCaption string `gorm:"column:legal_person_caption;type:varchar(10)" json:"legal_person_caption"`
|
|
|
|
+ CompanyStatus string `gorm:"column:company_status;type:varchar(50)" json:"company_status"`
|
|
|
|
+ CompanyType string `gorm:"column:company_type;type:varchar(50)" json:"company_type"`
|
|
|
|
+ Authority string `gorm:"column:authority;type:varchar(255)" json:"authority"`
|
|
|
|
+ IssueDate *time.Time `gorm:"column:issue_date;type:date" json:"issue_date"`
|
|
|
|
+ OperationStartDate string `gorm:"column:operation_startdate;type:varchar(50)" json:"operation_startdate"`
|
|
|
|
+ OperationEndDate string `gorm:"column:operation_enddate;type:varchar(50)" json:"operation_enddate"`
|
|
|
|
+ Capital string `gorm:"column:capital;type:varchar(50)" json:"capital"`
|
|
|
|
+ CompanyAddress string `gorm:"column:company_address;type:varchar(300)" json:"company_address"`
|
|
|
|
+ BusinessScope string `gorm:"column:business_scope;type:text" json:"business_scope"`
|
|
|
|
+ CancelDate *time.Time `gorm:"column:cancel_date;type:date" json:"cancel_date"`
|
|
|
|
+ CancelReason string `gorm:"column:cancel_reason;type:varchar(500)" json:"cancel_reason"`
|
|
|
|
+ RevokeDate *time.Time `gorm:"column:revoke_date;type:date" json:"revoke_date"`
|
|
|
|
+ RevokeReason string `gorm:"column:revoke_reason;type:varchar(500)" json:"revoke_reason"`
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"`
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;autoCreateTime" json:"create_time"`
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;autoUpdateTime;index" json:"update_time"`
|
|
|
|
+ LegalPersonType *int8 `gorm:"column:legal_person_type;type:tinyint(4)" json:"legal_person_type"`
|
|
|
|
+ RealCapital string `gorm:"column:real_capital;type:varchar(50)" json:"real_capital"`
|
|
|
|
+ EnName string `gorm:"column:en_name;type:varchar(255)" json:"en_name"`
|
|
|
|
+ ListCode string `gorm:"column:list_code;type:varchar(50)" json:"list_code"`
|
|
|
|
+ LegalPersonID string `gorm:"column:legal_person_id;type:char(32)" json:"legal_person_id"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyBase) TableName() string {
|
|
|
|
+ return "company_base"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyIndustry 企业行业分类表
|
|
|
|
+type CompanyIndustry struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
|
|
|
+ CompanyID string `gorm:"column:company_id;unique;type:char(32);not null" json:"company_id"`
|
|
|
|
+ Industry string `gorm:"column:industry;type:varchar(100);not null;index" json:"industry"`
|
|
|
|
+ IndustryL1Code string `gorm:"column:industry_l1_code;type:varchar(5)" json:"industry_l1_code"`
|
|
|
|
+ IndustryL1Name string `gorm:"column:industry_l1_name;type:varchar(100)" json:"industry_l1_name"`
|
|
|
|
+ IndustryL2Code string `gorm:"column:industry_l2_code;type:varchar(5)" json:"industry_l2_code"`
|
|
|
|
+ IndustryL2Name string `gorm:"column:industry_l2_name;type:varchar(100)" json:"industry_l2_name"`
|
|
|
|
+ IndustryL3Code string `gorm:"column:industry_l3_code;type:varchar(5)" json:"industry_l3_code"`
|
|
|
|
+ IndustryL3Name string `gorm:"column:industry_l3_name;type:varchar(100)" json:"industry_l3_name"`
|
|
|
|
+ IndustryL4Code string `gorm:"column:industry_l4_code;type:varchar(5)" json:"industry_l4_code"`
|
|
|
|
+ IndustryL4Name string `gorm:"column:industry_l4_name;type:varchar(100)" json:"industry_l4_name"`
|
|
|
|
+ UseFlag int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"`
|
|
|
|
+ CreateTime time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"create_time"`
|
|
|
|
+ UpdateTime time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// TableName 自定义表名
|
|
|
|
+func (CompanyIndustry) TableName() string {
|
|
|
|
+ return "company_industry"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyHistoryName 企业曾用名记录表
|
|
|
|
+type CompanyHistoryName struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ HistoryName string `gorm:"column:history_name;type:varchar(255);not null;index" json:"history_name"` // 曾用名
|
|
|
|
+ StartDate *time.Time `gorm:"column:start_date;type:date" json:"start_date"` // 名称开始使用日期
|
|
|
|
+ EndDate *time.Time `gorm:"column:end_date;type:date" json:"end_date"` // 名称结束使用日期
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ ChangeDate *time.Time `gorm:"column:change_date;type:date" json:"change_date"` // 废弃字段
|
|
|
|
+ CreateTime time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// TableName 自定义表名
|
|
|
|
+func (CompanyHistoryName) TableName() string {
|
|
|
|
+ return "company_history_name"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyChange 企业变更记录
|
|
|
|
+type CompanyChange struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ ChangeDate *time.Time `gorm:"column:change_date;type:date" json:"change_date"` // 变更日期
|
|
|
|
+ ChangeType string `gorm:"column:change_type;type:varchar(100)" json:"change_type"` // 变更类型
|
|
|
|
+ ChangeField string `gorm:"column:change_field;type:varchar(4091)" json:"change_field"` // 变更事项
|
|
|
|
+ ContentBefore string `gorm:"column:content_before;type:mediumtext" json:"content_before"` // 变更前内容
|
|
|
|
+ ContentAfter string `gorm:"column:content_after;type:mediumtext" json:"content_after"` // 变更后内容
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ ChangeRecord string `gorm:"column:change_record;type:char(32);not null" json:"change_record"` // 变更记录
|
|
|
|
+ CreateTime time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 最后更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// TableName 自定义表名
|
|
|
|
+func (CompanyChange) TableName() string {
|
|
|
|
+ return "company_change"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyBranch 企业分支机构
|
|
|
|
+type CompanyBranch struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ BranchCompanyID *string `gorm:"column:branch_company_id;type:char(32);index" json:"branch_company_id"` // 分支机构的主体唯一键
|
|
|
|
+ BranchName string `gorm:"column:branch_name;type:varchar(255);not null;index" json:"branch_name"` // 分支机构名称
|
|
|
|
+ BranchCreditNo *string `gorm:"column:branch_credit_no;type:varchar(50)" json:"branch_credit_no"` // 分支机构统一信用代码
|
|
|
|
+ BranchCode *string `gorm:"column:branch_code;type:varchar(50)" json:"branch_code"` // 分支机构注册号
|
|
|
|
+ LegalPerson *string `gorm:"column:legal_person;type:varchar(255)" json:"legal_person"` // 分支机构负责人
|
|
|
|
+ CompanyStatus *string `gorm:"column:company_status;type:varchar(50)" json:"company_status"` // 登记状态
|
|
|
|
+ NCompanyStatus *string `gorm:"column:n_company_status;type:varchar(50)" json:"n_company_status"` // 处理后的登记状态
|
|
|
|
+ EstablishDate *time.Time `gorm:"column:establish_date;type:date" json:"establish_date"` // 分支机构成立日期
|
|
|
|
+ Authority *string `gorm:"column:authority;type:varchar(255)" json:"authority"` // 分支机构登记机关
|
|
|
|
+ CancelDate *time.Time `gorm:"column:cancel_date;type:date" json:"cancel_date"` // 注销日期
|
|
|
|
+ RevokeDate *time.Time `gorm:"column:revoke_date;type:date" json:"revoke_date"` // 吊销日期
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 最后更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// TableName 自定义表名
|
|
|
|
+func (CompanyBranch) TableName() string {
|
|
|
|
+ return "company_branch"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// AnnualReportBase 企业年报基础信息表
|
|
|
|
+type AnnualReportBase struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ CreditNo *string `gorm:"column:credit_no;type:varchar(50)" json:"credit_no"` // 统一信用代码
|
|
|
|
+ CompanyName *string `gorm:"column:company_name;type:varchar(255)" json:"company_name"` // 企业名称
|
|
|
|
+ CompanyCode *string `gorm:"column:company_code;type:varchar(50)" json:"company_code"` // 注册号
|
|
|
|
+ ReportYear int16 `gorm:"column:report_year;type:smallint(6);not null" json:"report_year"` // 年报年份
|
|
|
|
+ OperatorName *string `gorm:"column:operator_name;type:varchar(255)" json:"operator_name"` // 经营者名称
|
|
|
|
+ CompanyStatus *string `gorm:"column:company_status;type:varchar(50)" json:"company_status"` // 经营状态
|
|
|
|
+ CompanyAddress *string `gorm:"column:company_address;type:varchar(300)" json:"company_address"` // 通讯地址
|
|
|
|
+ BusinessScope *string `gorm:"column:business_scope;type:mediumtext" json:"business_scope"` // 企业主营业务活动
|
|
|
|
+ CompanyPhone *string `gorm:"column:company_phone;type:varchar(50)" json:"company_phone"` // 联系电话
|
|
|
|
+ CompanyEmail *string `gorm:"column:company_email;type:varchar(50)" json:"company_email"` // 联系邮箱
|
|
|
|
+ ZipCode *string `gorm:"column:zip_code;type:varchar(10)" json:"zip_code"` // 邮政编码
|
|
|
|
+ EmployeeNo *string `gorm:"column:employee_no;type:varchar(20)" json:"employee_no"` // 从业人数
|
|
|
|
+ WomenEmployeeNo *string `gorm:"column:women_employee_no;type:varchar(20)" json:"women_employee_no"` // 女性从业人数
|
|
|
|
+ MemberNo *string `gorm:"column:member_no;type:varchar(20)" json:"member_no"` // 成员人数
|
|
|
|
+ MemberFarmerNo *string `gorm:"column:member_farmer_no;type:varchar(20)" json:"member_farmer_no"` // 成员人数中农民人数
|
|
|
|
+ MemberIncreaseNo *string `gorm:"column:member_increase_no;type:varchar(20)" json:"member_increase_no"` // 本年度新增成员人数
|
|
|
|
+ MemberOutNo *string `gorm:"column:member_out_no;type:varchar(20)" json:"member_out_no"` // 本年度退出成员人数
|
|
|
|
+ CompanyHolding *string `gorm:"column:company_holding;type:varchar(255)" json:"company_holding"` // 企业控股情况
|
|
|
|
+ HasInvest *string `gorm:"column:has_invest;type:varchar(10)" json:"has_invest"` // 是否有投资或购买其他公司股权
|
|
|
|
+ HasGuarantees *string `gorm:"column:has_guarantees;type:varchar(10)" json:"has_guarantees"` // 是否有对外提供担保信息
|
|
|
|
+ StockSell *string `gorm:"column:stock_sell;type:varchar(10)" json:"stock_sell"` // 有限责任公司是否发生股权转让
|
|
|
|
+ SubjectionCreditNo *string `gorm:"column:subjection_credit_no;type:varchar(50)" json:"subjection_credit_no"` // 从属企业统一信用代码/注册号
|
|
|
|
+ SubjectionCompanyName *string `gorm:"column:subjection_company_name;type:varchar(255)" json:"subjection_company_name"` // 从属企业名称
|
|
|
|
+ HasWebsite *string `gorm:"column:has_website;type:varchar(10)" json:"has_website"` // 是否有网站或网点
|
|
|
|
+ ReportDate *time.Time `gorm:"column:report_date;type:date" json:"report_date"` // 年报填报时间
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 最后更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// TableName 表名自定义
|
|
|
|
+func (AnnualReportBase) TableName() string {
|
|
|
|
+ return "annual_report_base"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// AnnualReportWebsite 企业年报网站信息表
|
|
|
|
+type AnnualReportWebsite struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ ReportYear int16 `gorm:"column:report_year;type:smallint(6);not null" json:"report_year"` // 年报年份
|
|
|
|
+ WebsiteURL string `gorm:"column:website_url;type:varchar(400);not null" json:"website_url"` // 网址
|
|
|
|
+ WebsiteName *string `gorm:"column:website_name;type:varchar(300)" json:"website_name"` // 网站名称
|
|
|
|
+ WebsiteType *string `gorm:"column:website_type;type:varchar(20)" json:"website_type"` // 网站类型
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 是否历史数据
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ URLMD5 string `gorm:"column:url_md5;type:char(32);not null" json:"url_md5"` // 网址MD5
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// TableName 设置表名
|
|
|
|
+func (AnnualReportWebsite) TableName() string {
|
|
|
|
+ return "annual_report_website"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// AnnualReportPartner 企业年报股东信息表
|
|
|
|
+type AnnualReportPartner struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ ReportYear int16 `gorm:"column:report_year;type:smallint(6);not null" json:"report_year"` // 年报年份
|
|
|
|
+ StockName string `gorm:"column:stock_name;type:varchar(255);not null" json:"stock_name"` // 股东名称
|
|
|
|
+ IsPersonal *int8 `gorm:"column:is_personal;type:tinyint(4)" json:"is_personal"` // 是否自然人
|
|
|
|
+ StockNameID *string `gorm:"column:stock_name_id;type:char(32)" json:"stock_name_id"` // 股东id
|
|
|
|
+ StockCapital *string `gorm:"column:stock_capital;type:varchar(100)" json:"stock_capital"` // 认缴出资额
|
|
|
|
+ StockDate *time.Time `gorm:"column:stock_date;type:date" json:"stock_date"` // 认缴出资日期
|
|
|
|
+ InvestType *string `gorm:"column:invest_type;type:varchar(50)" json:"invest_type"` // 认缴出资方式
|
|
|
|
+ StockRealCapital *string `gorm:"column:stock_real_capital;type:varchar(100)" json:"stock_real_capital"` // 实缴出资额
|
|
|
|
+ StockRealDate *time.Time `gorm:"column:stock_real_date;type:date" json:"stock_real_date"` // 实缴出资日期
|
|
|
|
+ InvestRealType *string `gorm:"column:invest_real_type;type:varchar(50)" json:"invest_real_type"` // 实缴出资方式
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 是否历史数据
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ PartnerRecord string `gorm:"column:partner_record;type:char(32);not null" json:"partner_record"` // 年报股东记录
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// TableName 设置表名
|
|
|
|
+func (AnnualReportPartner) TableName() string {
|
|
|
|
+ return "annual_report_partner"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// AnnualReportInvest 企业年报对外投资信息表
|
|
|
|
+type AnnualReportInvest struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ ReportYear int16 `gorm:"column:report_year;type:smallint(6);not null" json:"report_year"` // 年报年份
|
|
|
|
+ CreditNo *string `gorm:"column:credit_no;type:varchar(50)" json:"credit_no"` // 统一信用代码
|
|
|
|
+ InvesteeName string `gorm:"column:investee_name;type:varchar(255);not null" json:"investee_name"` // 对外投资企业名称
|
|
|
|
+ InvesteeNameID *string `gorm:"column:investee_name_id;type:char(32)" json:"investee_name_id"` // 投资企业的company_id
|
|
|
|
+ InvesteeCode *string `gorm:"column:investee_code;type:varchar(50)" json:"investee_code"` // 注册号
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 是否历史数据
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// TableName 设置表名
|
|
|
|
+func (AnnualReportInvest) TableName() string {
|
|
|
|
+ return "annual_report_invest"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// AnnualReportAsset 企业年报资产信息表
|
|
|
|
+type AnnualReportAsset struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ ReportYear int16 `gorm:"column:report_year;type:smallint(6);not null" json:"report_year"` // 年报年份
|
|
|
|
+ TotalAmount *string `gorm:"column:total_amount;type:varchar(20)" json:"total_amount"` // 资产总额
|
|
|
|
+ EquityAmount *string `gorm:"column:equity_amount;type:varchar(20)" json:"equity_amount"` // 所有者权益合计
|
|
|
|
+ BusinessIncome *string `gorm:"column:business_income;type:varchar(20)" json:"business_income"` // 销售总额(营业总收入)
|
|
|
|
+ TotalProfitAmount *string `gorm:"column:total_profit_amount;type:varchar(20)" json:"total_profit_amount"` // 利润总额
|
|
|
|
+ MainBusinessIncome *string `gorm:"column:main_business_income;type:varchar(20)" json:"main_business_income"` // 主营业务收入
|
|
|
|
+ ProfitAmount *string `gorm:"column:profit_amount;type:varchar(20)" json:"profit_amount"` // 净利润
|
|
|
|
+ TaxAmount *string `gorm:"column:tax_amount;type:varchar(20)" json:"tax_amount"` // 纳税总额
|
|
|
|
+ DebtAmount *string `gorm:"column:debt_amount;type:varchar(20)" json:"debt_amount"` // 负债总额
|
|
|
|
+ GovernmentSupport *string `gorm:"column:government_support;type:varchar(20)" json:"government_support"` // 获得政府扶持资金、补助
|
|
|
|
+ FinancialLoan *string `gorm:"column:financial_loan;type:varchar(20)" json:"financial_loan"` // 金融贷款
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// TableName 设置表名
|
|
|
|
+func (AnnualReportAsset) TableName() string {
|
|
|
|
+ return "annual_report_asset"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// AnnualReportSocialSecurity 企业年报社保信息表
|
|
|
|
+type AnnualReportSocialSecurity struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ ReportYear int16 `gorm:"column:report_year;type:smallint(6);not null" json:"report_year"` // 年报年份
|
|
|
|
+ InsuranceName string `gorm:"column:insurance_name;type:varchar(20);not null" json:"insurance_name"` // 保险种类、名称
|
|
|
|
+ InsuranceAmount *string `gorm:"column:insurance_amount;type:varchar(20)" json:"insurance_amount"` // 参保人数
|
|
|
|
+ InsuranceBase *string `gorm:"column:insurance_base;type:varchar(20)" json:"insurance_base"` // 保险缴费基数
|
|
|
|
+ InsuranceRealCapital *string `gorm:"column:insurance_real_capital;type:varchar(20)" json:"insurance_real_capital"` // 实际缴费金额
|
|
|
|
+ InsuranceArrearage *string `gorm:"column:insurance_arrearage;type:varchar(20)" json:"insurance_arrearage"` // 累计欠缴金额
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// TableName 设置表名
|
|
|
|
+func (AnnualReportSocialSecurity) TableName() string {
|
|
|
|
+ return "annual_report_social_security"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// AnnualReportEquityChange 企业年报股权变更信息表
|
|
|
|
+type AnnualReportEquityChange struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ ReportYear int16 `gorm:"column:report_year;type:smallint(6);not null" json:"report_year"` // 年报年份
|
|
|
|
+ StockName string `gorm:"column:stock_name;type:varchar(255);not null" json:"stock_name"` // 股东名称
|
|
|
|
+ ChangeDate *time.Time `gorm:"column:change_date;type:date" json:"change_date"` // 变更日期
|
|
|
|
+ ProportionBefore *string `gorm:"column:proportion_change_before;type:varchar(20)" json:"proportion_change_before"` // 变更前股权比例
|
|
|
|
+ ProportionAfter *string `gorm:"column:proportion_change_after;type:varchar(20)" json:"proportion_change_after"` // 变更后股权比例
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 是否历史数据
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ ChangeRecord string `gorm:"column:change_record;type:char(32);not null" json:"change_record"` // 变更记录(股东名称+变更日期)
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// TableName 设置表名
|
|
|
|
+func (AnnualReportEquityChange) TableName() string {
|
|
|
|
+ return "annual_report_equity_change"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// AnnualReportChange 企业年报变更信息表
|
|
|
|
+type AnnualReportChange struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ ReportYear int16 `gorm:"column:report_year;type:smallint(6);not null" json:"report_year"` // 年报年份
|
|
|
|
+ ChangeDate *time.Time `gorm:"column:change_date;type:date" json:"change_date"` // 修改日期
|
|
|
|
+ ChangeField *string `gorm:"column:change_field;type:varchar(1000)" json:"change_field"` // 修改事项
|
|
|
|
+ ContentBefore *string `gorm:"column:content_before;type:mediumtext" json:"content_before"` // 修改前
|
|
|
|
+ ContentAfter *string `gorm:"column:content_after;type:mediumtext" json:"content_after"` // 修改后
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ ChangeRecord string `gorm:"column:change_record;type:char(32);not null" json:"change_record"` // 变更记录
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// TableName sets the table name for GORM
|
|
|
|
+func (AnnualReportChange) TableName() string {
|
|
|
|
+ return "annual_report_change"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// AnnualReportGuarantee 企业年报对外提供保证担保信息表
|
|
|
|
+type AnnualReportGuarantee struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ ReportYear int16 `gorm:"column:report_year;type:smallint(6);not null" json:"report_year"` // 年报年份
|
|
|
|
+ Creditor *string `gorm:"column:creditor;type:varchar(255)" json:"creditor"` // 债权人
|
|
|
|
+ Debtor *string `gorm:"column:debtor;type:varchar(255)" json:"debtor"` // 债务人
|
|
|
|
+ DebtType *string `gorm:"column:debt_type;type:varchar(50)" json:"debt_type"` // 主债权种类
|
|
|
|
+ GuaranteeAmount *string `gorm:"column:guarantee_amount;type:varchar(50)" json:"guarantee_amount"` // 主债权数额
|
|
|
|
+ PerformTime *string `gorm:"column:perform_time;type:varchar(50)" json:"perform_time"` // 履行债务的期限
|
|
|
|
+ GuaranteeTerm *string `gorm:"column:guarantee_term;type:varchar(50)" json:"guarantee_term"` // 保证的期间
|
|
|
|
+ GuaranteeType *string `gorm:"column:guarantee_type;type:varchar(50)" json:"guarantee_type"` // 保证的方式
|
|
|
|
+ GuaranteeScope *string `gorm:"column:guarantee_scope;type:varchar(50)" json:"guarantee_scope"` // 保证担保的范围
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 是否历史数据
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ GuaranteeRecord string `gorm:"column:guarantee_record;type:char(32);not null" json:"guarantee_record"` // MD5 唯一标识
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// TableName sets the table name for GORM
|
|
|
|
+func (AnnualReportGuarantee) TableName() string {
|
|
|
|
+ return "annual_report_guarantee"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyAllow 行政许可信息表
|
|
|
|
+type CompanyAllow struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ AllowCode *string `gorm:"column:allow_code;type:varchar(255);default:null" json:"allow_code"` // 许可文件编号
|
|
|
|
+ AllowFilename *string `gorm:"column:allow_filename;type:varchar(255);default:null" json:"allow_filename"` // 许可文件名称
|
|
|
|
+ AllowContent *string `gorm:"column:allow_content;type:varchar(4500);default:null" json:"allow_content"` // 许可内容
|
|
|
|
+ AllowStartDate *string `gorm:"column:allow_startdate;type:varchar(50);default:null" json:"allow_startdate"` // 有效期自
|
|
|
|
+ AllowEndDate *string `gorm:"column:allow_enddate;type:varchar(50);default:null" json:"allow_enddate"` // 有效期至
|
|
|
|
+ AllowAuthority *string `gorm:"column:allow_authority;type:varchar(255);default:null" json:"allow_authority"` // 许可机关
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 是否历史数据
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ AllowRecord string `gorm:"column:allow_record;type:char(32);not null" json:"allow_record"` // 行政许可记录
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 最后更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyAllow) TableName() string {
|
|
|
|
+ return "company_allow"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyAbnormal 经营异常记录表
|
|
|
|
+type CompanyAbnormal struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ IncludedDate *time.Time `gorm:"column:included_date;type:date" json:"included_date"` // 列入时间
|
|
|
|
+ IncludedReason *string `gorm:"column:included_reason;type:varchar(4000)" json:"included_reason"` // 列入原因
|
|
|
|
+ IncludedAuthority *string `gorm:"column:included_authority;type:varchar(255)" json:"included_authority"` // 列入机关
|
|
|
|
+ RemovedDate *time.Time `gorm:"column:removed_date;type:date" json:"removed_date"` // 移除时间
|
|
|
|
+ RemovedReason *string `gorm:"column:removed_reason;type:varchar(4000)" json:"removed_reason"` // 移除原因
|
|
|
|
+ RemovedAuthority *string `gorm:"column:removed_authority;type:varchar(255)" json:"removed_authority"` // 移除机关
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 是否历史数据
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 使用标记
|
|
|
|
+ AbnormalRecord string `gorm:"column:abnormal_record;type:char(32);not null" json:"abnormal_record"` // 经营异常记录
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 最后更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// TableName sets the insert table name for this struct type
|
|
|
|
+func (CompanyAbnormal) TableName() string {
|
|
|
|
+ return "company_abnormal"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyIllegal 企业严重违法信息表
|
|
|
|
+type CompanyIllegal struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ IncludedDate *time.Time `gorm:"column:included_date;type:date" json:"included_date"` // 列入时间
|
|
|
|
+ IllegalType *string `gorm:"column:illegal_type;type:varchar(255);default:null" json:"illegal_type"` // 类别
|
|
|
|
+ IncludedReason *string `gorm:"column:included_reason;type:varchar(4000);default:null" json:"included_reason"` // 列入原因
|
|
|
|
+ IncludedAuthority *string `gorm:"column:included_authority;type:varchar(255);default:null" json:"included_authority"` // 列入机关
|
|
|
|
+ RemovedDate *time.Time `gorm:"column:removed_date;type:date" json:"removed_date"` // 移除时间
|
|
|
|
+ RemovedReason *string `gorm:"column:removed_reason;type:varchar(4000);default:null" json:"removed_reason"` // 移除原因
|
|
|
|
+ RemovedAuthority *string `gorm:"column:removed_authority;type:varchar(255);default:null" json:"removed_authority"` // 移除机关
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 是否历史数据
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ IllegalRecord string `gorm:"column:illegal_record;type:char(32);not null" json:"illegal_record"` // 严重违法记录
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 最后更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyIllegal) TableName() string {
|
|
|
|
+ return "company_illegal"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyCheck 企业抽查检查信息表
|
|
|
|
+type CompanyCheck struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ CheckDate *time.Time `gorm:"column:check_date;type:date" json:"check_date"` // 日期
|
|
|
|
+ CheckType *string `gorm:"column:check_type;type:varchar(30);default:null" json:"check_type"` // 类型
|
|
|
|
+ CheckResult *string `gorm:"column:check_result;type:varchar(1024);default:null" json:"check_result"` // 结果
|
|
|
|
+ Authority *string `gorm:"column:authority;type:varchar(255);default:null" json:"authority"` // 检查实施机关
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 状态(0: 有效,1: 历史)
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记,10废弃数据
|
|
|
|
+ CheckRecord string `gorm:"column:check_record;type:char(32);not null" json:"check_record"` // 抽查检查记录 日期+检查实施机关
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 最后更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyCheck) TableName() string {
|
|
|
|
+ return "company_check"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyPledge 企业股权出质信息表
|
|
|
|
+type CompanyPledge struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ ProvinceShort *string `gorm:"column:province_short;type:varchar(5)" json:"province_short"` // 省份简称
|
|
|
|
+ PledgeCode *string `gorm:"column:pledge_code;type:varchar(50)" json:"pledge_code"` // 登记编号
|
|
|
|
+ Pledgor *string `gorm:"column:pledgor;type:varchar(255)" json:"pledgor"` // 出质人
|
|
|
|
+ PledgorIdentifyNo *string `gorm:"column:pledgor_identify_no;type:varchar(30)" json:"pledgor_identify_no"` // 出质人证件号码
|
|
|
|
+ PledgorNameID *string `gorm:"column:pledgor_name_id;type:char(32)" json:"pledgor_name_id"` // 机构出质人 company_id
|
|
|
|
+ PledgorIsPersonal *int8 `gorm:"column:pledgor_is_personal;type:tinyint" json:"pledgor_is_personal"` // 出质人类型
|
|
|
|
+ Pawnee *string `gorm:"column:pawnee;type:varchar(255)" json:"pawnee"` // 质权人
|
|
|
|
+ PawneeIdentifyNo *string `gorm:"column:pawnee_identify_no;type:varchar(30)" json:"pawnee_identify_no"` // 质权人证件号码
|
|
|
|
+ PawneeNameID *string `gorm:"column:pawnee_name_id;type:char(32)" json:"pawnee_name_id"` // 机构质权人 company_id
|
|
|
|
+ PawneeIsPersonal *int8 `gorm:"column:pawnee_is_personal;type:tinyint" json:"pawnee_is_personal"` // 质权人类型
|
|
|
|
+ PledgeEquity *string `gorm:"column:pledge_equity;type:varchar(30)" json:"pledge_equity"` // 出质股权数额
|
|
|
|
+ PledgeDate *time.Time `gorm:"column:pledge_date;type:date" json:"pledge_date"` // 出质登记日期
|
|
|
|
+ PledgeStatus *string `gorm:"column:pledge_status;type:varchar(10)" json:"pledge_status"` // 状态
|
|
|
|
+ PublicDate *time.Time `gorm:"column:public_date;type:date" json:"public_date"` // 公示日期
|
|
|
|
+ RevokeDate *time.Time `gorm:"column:revoke_date;type:date" json:"revoke_date"` // 注销日期
|
|
|
|
+ RevokeReason *string `gorm:"column:revoke_reason;type:varchar(255)" json:"revoke_reason"` // 注销原因
|
|
|
|
+ InvalidDate *time.Time `gorm:"column:invalid_date;type:date" json:"invalid_date"` // 失效时间
|
|
|
|
+ InvalidReason *string `gorm:"column:invalid_reason;type:varchar(255)" json:"invalid_reason"` // 失效原因
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint;default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint;default:0" json:"is_history"` // 状态(0: 有效,1: 历史)
|
|
|
|
+ PledgeRecord string `gorm:"column:pledge_record;type:char(32);not null" json:"pledge_record"` // 股权出质记录
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyPledge) TableName() string {
|
|
|
|
+ return "company_pledge"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyPledgeExtend 企业股权出质扩展信息表
|
|
|
|
+type CompanyPledgeExtend struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ PledgeRecord string `gorm:"column:pledge_record;type:char(32);not null" json:"pledge_record"` // 股权出质记录
|
|
|
|
+ EquityAmount *string `gorm:"column:equity_amount;type:varchar(30)" json:"equity_amount"` // 股权出质数值
|
|
|
|
+ EquityUnit *string `gorm:"column:equity_unit;type:varchar(30)" json:"equity_unit"` // 股权出质单位
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint;default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyPledgeExtend) TableName() string {
|
|
|
|
+ return "company_pledge_extend"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyPunish 企业行政处罚信息表
|
|
|
|
+type CompanyPunish struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ PunishDate *time.Time `gorm:"column:punish_date;type:date" json:"punish_date"` // 处罚决定日期
|
|
|
|
+ PunishCode *string `gorm:"column:punish_code;type:varchar(200)" json:"punish_code"` // 决定书文号
|
|
|
|
+ IllegalType *string `gorm:"column:illegal_type;type:varchar(4000)" json:"illegal_type"` // 违法行为类型
|
|
|
|
+ PunishContent *string `gorm:"column:punish_content;type:mediumtext" json:"punish_content"` // 行政处罚内容
|
|
|
|
+ IllegalFact *string `gorm:"column:illegal_fact;type:mediumtext" json:"illegal_fact"` // 主要违法事实
|
|
|
|
+ PunishType *string `gorm:"column:punish_type;type:varchar(150)" json:"punish_type"` // 处罚种类
|
|
|
|
+ PunishAmount *string `gorm:"column:punish_amount;type:varchar(50)" json:"punish_amount"` // 罚款金额
|
|
|
|
+ AmountForfeiture *string `gorm:"column:amount_forfeiture;type:varchar(50)" json:"amount_forfeiture"` // 没收金额
|
|
|
|
+ PunishValidity *string `gorm:"column:punish_validity;type:varchar(200)" json:"punish_validity"` // 处罚有效期
|
|
|
|
+ PublicDate *time.Time `gorm:"column:public_date;type:date" json:"public_date"` // 公示日期
|
|
|
|
+ PublicDeadline *string `gorm:"column:public_deadline;type:varchar(50)" json:"public_deadline"` // 公示截止日期
|
|
|
|
+ PunishBasis *string `gorm:"column:punish_basis;type:varchar(1000)" json:"punish_basis"` // 处罚依据
|
|
|
|
+ Authority *string `gorm:"column:authority;type:varchar(255)" json:"authority"` // 决定机关
|
|
|
|
+ RevokeNameCode *string `gorm:"column:revoke_name_code;type:varchar(200)" json:"revoke_name_code"` // 暂扣或吊销证照名称及编号
|
|
|
|
+ Mark *string `gorm:"column:mark;type:varchar(255)" json:"mark"` // 备注
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint;default:0" json:"is_history"` // 是否历史数据
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint;default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ PunishRecord string `gorm:"column:punish_record;type:char(32);not null" json:"punish_record"` // 行政处罚记录
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyPunish) TableName() string {
|
|
|
|
+ return "company_punish"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyIntellectual 企业知识产权出质信息表
|
|
|
|
+type CompanyIntellectual struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ PublicDate *time.Time `gorm:"column:public_date;type:date" json:"public_date"` // 公示日期
|
|
|
|
+ IntellectualCode *string `gorm:"column:intellectual_code;type:varchar(50)" json:"intellectual_code"` // 知识产权登记证号
|
|
|
|
+ Pledgor *string `gorm:"column:pledgor;type:varchar(255)" json:"pledgor"` // 出质人名称
|
|
|
|
+ IntellectualName *string `gorm:"column:intellectual_name;type:varchar(50)" json:"intellectual_name"` // 名称
|
|
|
|
+ IntellectualType *string `gorm:"column:intellectual_type;type:varchar(20)" json:"intellectual_type"` // 种类
|
|
|
|
+ Pledgee *string `gorm:"column:pledgee;type:varchar(255)" json:"pledgee"` // 质权人名称
|
|
|
|
+ IntellectualStatus *string `gorm:"column:intellectual_status;type:varchar(20)" json:"intellectual_status"` // 状态
|
|
|
|
+ IntellectualDeadline *string `gorm:"column:intellectual_deadline;type:varchar(100)" json:"intellectual_deadline"` // 质权登记期限
|
|
|
|
+ CancelDate *time.Time `gorm:"column:cancel_date;type:date" json:"cancel_date"` // 注销日期
|
|
|
|
+ CancelReason *string `gorm:"column:cancel_reason;type:varchar(255)" json:"cancel_reason"` // 注销原因
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint;default:0" json:"is_history"` // 是否历史数据
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint;default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ IntellectualRecord string `gorm:"column:intellectual_record;type:char(32);not null" json:"intellectual_record"` // 知识产权出质记录
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyIntellectual) TableName() string {
|
|
|
|
+ return "company_intellectual"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyIntellectualChange 知识产权出质变更信息表
|
|
|
|
+type CompanyIntellectualChange struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ ChangeDate *time.Time `gorm:"column:change_date;type:date" json:"change_date"` // 变更日期
|
|
|
|
+ ChangeField *string `gorm:"column:change_field;type:varchar(500)" json:"change_field"` // 变更事项
|
|
|
|
+ ContentBefore *string `gorm:"column:content_before;type:varchar(2000)" json:"content_before"` // 变更前内容
|
|
|
|
+ ContentAfter *string `gorm:"column:content_after;type:varchar(2000)" json:"content_after"` // 变更后内容
|
|
|
|
+ ChangeRecord string `gorm:"column:change_record;type:varchar(50);not null" json:"change_record"` // 变更记录
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 状态
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ IntellectualRecord string `gorm:"column:intellectual_record;type:char(32);not null" json:"intellectual_record"` // 知识产权出质记录
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyIntellectualChange) TableName() string {
|
|
|
|
+ return "company_intellectual_change"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyChattel 动产抵押登记信息表
|
|
|
|
+type CompanyChattel struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ ChattelDate *time.Time `gorm:"column:chattel_date;type:date" json:"chattel_date"` // 登记日期
|
|
|
|
+ ChattelCode string `gorm:"column:chattel_code;type:varchar(100);not null" json:"chattel_code"` // 登记编号
|
|
|
|
+ DebtType *string `gorm:"column:debt_type;type:varchar(50)" json:"debt_type"` // 被担保债权种类
|
|
|
|
+ DebtAmount *string `gorm:"column:debt_amount;type:varchar(50)" json:"debt_amount"` // 被担保债权数额
|
|
|
|
+ GuaranteeScope *string `gorm:"column:guarantee_scope;type:varchar(1000)" json:"guarantee_scope"` // 担保范围
|
|
|
|
+ DebtTerm *string `gorm:"column:debt_term;type:varchar(200)" json:"debt_term"` // 债务履行期限
|
|
|
|
+ Remark *string `gorm:"column:remark;type:varchar(1000)" json:"remark"` // 主债权信息备注
|
|
|
|
+ ChattelStatus *string `gorm:"column:chattel_status;type:varchar(100)" json:"chattel_status"` // 状态
|
|
|
|
+ Authority *string `gorm:"column:authority;type:varchar(255)" json:"authority"` // 登记机关
|
|
|
|
+ PublicDate *time.Time `gorm:"column:public_date;type:date" json:"public_date"` // 公示日期
|
|
|
|
+ RevokeDate *time.Time `gorm:"column:revoke_date;type:date" json:"revoke_date"` // 注销日期
|
|
|
|
+ RevokeReason *string `gorm:"column:revoke_reason;type:varchar(500)" json:"revoke_reason"` // 注销原因
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 是否历史数据
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyChattel) TableName() string {
|
|
|
|
+ return "company_chattel"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyChattelChange 动产抵押变更信息表
|
|
|
|
+type CompanyChattelChange struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ ChangeDate *time.Time `gorm:"column:change_date;type:date" json:"change_date"` // 变更日期
|
|
|
|
+ ChattelCode *string `gorm:"column:chattel_code;type:varchar(100)" json:"chattel_code"` // 登记编号
|
|
|
|
+ ChangeContent *string `gorm:"column:change_content;type:text" json:"change_content"` // 变更内容
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 是否历史数据
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ ChangeRecord string `gorm:"column:change_record;type:char(32);not null" json:"change_record"` // 变更记录
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyChattelChange) TableName() string {
|
|
|
|
+ return "company_chattel_change"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyChattelMortgage 动产抵押权人信息表
|
|
|
|
+type CompanyChattelMortgage struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ ChattelCode *string `gorm:"column:chattel_code;type:varchar(100)" json:"chattel_code"` // 登记编号
|
|
|
|
+ Mortgagee *string `gorm:"column:mortgagee;type:varchar(255)" json:"mortgagee"` // 抵押权人名称
|
|
|
|
+ MortgageeIdentifyType *string `gorm:"column:mortgagee_identify_type;type:varchar(200)" json:"mortgagee_identify_type"` // 抵押权人证照/证件类型
|
|
|
|
+ MortgageeIdentifyNo *string `gorm:"column:mortgagee_identify_no;type:varchar(200)" json:"mortgagee_identify_no"` // 证照/证件号码
|
|
|
|
+ MortgageeAddress *string `gorm:"column:mortgagee_address;type:varchar(300)" json:"mortgagee_address"` // 住所地
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 是否历史数据
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyChattelMortgage) TableName() string {
|
|
|
|
+ return "company_chattel_mortgage"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyChattelPawn 动产抵押物信息表
|
|
|
|
+type CompanyChattelPawn struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ ChattelCode *string `gorm:"column:chattel_code;type:varchar(100)" json:"chattel_code"` // 登记编号
|
|
|
|
+ PawnNo *int `gorm:"column:pawn_no;type:int(11)" json:"pawn_no"` // 抵押物编号
|
|
|
|
+ PawnName *string `gorm:"column:pawn_name;type:varchar(500)" json:"pawn_name"` // 名称
|
|
|
|
+ PawnInfo *string `gorm:"column:pawn_info;type:varchar(5000)" json:"pawn_info"` // 数量、质量、状况、所在地等情况
|
|
|
|
+ PawnOwner *string `gorm:"column:pawn_owner;type:varchar(255)" json:"pawn_owner"` // 所有权归属
|
|
|
|
+ Remark *string `gorm:"column:remark;type:varchar(200)" json:"remark"` // 备注
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 是否历史数据
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyChattelPawn) TableName() string {
|
|
|
|
+ return "company_chattel_pawn"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyJustice 司法协助信息表
|
|
|
|
+type CompanyJustice struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ DocNo *string `gorm:"column:doc_no;type:varchar(200)" json:"doc_no"` // 执行通知书文号
|
|
|
|
+ Executee *string `gorm:"column:executee;type:varchar(255)" json:"executee"` // 被执行人
|
|
|
|
+ EquityAmount *string `gorm:"column:equity_amount;type:varchar(50)" json:"equity_amount"` // 股权数额
|
|
|
|
+ EquityStatus *string `gorm:"column:equity_status;type:varchar(50)" json:"equity_status"` // 类型|状态
|
|
|
|
+ ExecCourt *string `gorm:"column:exec_court;type:varchar(100)" json:"exec_court"` // 执行法院
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 状态(0: 有效, 1: 历史)
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ JusticeRecord string `gorm:"column:justice_record;type:char(32);not null" json:"justice_record"` // 司法协助记录
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 最后更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyJustice) TableName() string {
|
|
|
|
+ return "company_justice"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyJusticeEquityChange 司法协助股权变更信息表
|
|
|
|
+type CompanyJusticeEquityChange struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ ExecDate *time.Time `gorm:"column:exec_date;type:date" json:"exec_date"` // 执行日期
|
|
|
|
+ DocNo *string `gorm:"column:doc_no;type:varchar(200)" json:"doc_no"` // 执行通知书文号
|
|
|
|
+ Executee *string `gorm:"column:executee;type:varchar(255)" json:"executee"` // 被执行人
|
|
|
|
+ ExecuteeIdentifyType *string `gorm:"column:executee_identify_type;type:varchar(50)" json:"executee_identify_type"` // 被执行人证照种类
|
|
|
|
+ ExecuteeIdentifyNo *string `gorm:"column:executee_identify_no;type:varchar(50)" json:"executee_identify_no"` // 被执行人证件号码
|
|
|
|
+ ExecItem *string `gorm:"column:exec_item;type:varchar(250)" json:"exec_item"` // 执行事项
|
|
|
|
+ EquityAmount *string `gorm:"column:equity_amount;type:varchar(50)" json:"equity_amount"` // 股权数额
|
|
|
|
+ Accepter *string `gorm:"column:accepter;type:varchar(255)" json:"accepter"` // 受让人
|
|
|
|
+ AccepterIdentifyType *string `gorm:"column:accepter_identify_type;type:varchar(50)" json:"accepter_identify_type"` // 受让人证件类型
|
|
|
|
+ AccepterIdentifyNo *string `gorm:"column:accepter_identify_no;type:varchar(50)" json:"accepter_identify_no"` // 受让人证件号码
|
|
|
|
+ ExecCourt *string `gorm:"column:exec_court;type:varchar(100)" json:"exec_court"` // 执行法院
|
|
|
|
+ ExecNo *string `gorm:"column:exec_no;type:varchar(200)" json:"exec_no"` // 执行裁定书文号
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 是否历史
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ JusticeRecord string `gorm:"column:justice_record;type:char(32);not null" json:"justice_record"` // 司法协助记录
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 最后更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyJusticeEquityChange) TableName() string {
|
|
|
|
+ return "company_justice_equity_change"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyJusticeFreeze 司法协助冻结信息表
|
|
|
|
+type CompanyJusticeFreeze struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ PublicDate *time.Time `gorm:"column:public_date;type:date" json:"public_date"` // 冻结公示日期
|
|
|
|
+ DocNo *string `gorm:"column:doc_no;type:varchar(200)" json:"doc_no"` // 执行通知书文号
|
|
|
|
+ Executee *string `gorm:"column:executee;type:varchar(255)" json:"executee"` // 被执行人
|
|
|
|
+ ExecuteeIdentifyType *string `gorm:"column:executee_identify_type;type:varchar(50)" json:"executee_identify_type"` // 被执行人证照种类
|
|
|
|
+ ExecuteeIdentifyNo *string `gorm:"column:executee_identify_no;type:varchar(50)" json:"executee_identify_no"` // 被执行人证件号码
|
|
|
|
+ ExecItem *string `gorm:"column:exec_item;type:varchar(250)" json:"exec_item"` // 执行事项
|
|
|
|
+ EquityAmount *string `gorm:"column:equity_amount;type:varchar(50)" json:"equity_amount"` // 股权数额
|
|
|
|
+ FreezeStartDate *time.Time `gorm:"column:freeze_start_date;type:date" json:"freeze_start_date"` // 冻结期限自
|
|
|
|
+ FreezeEndDate *time.Time `gorm:"column:freeze_end_date;type:date" json:"freeze_end_date"` // 冻结期限至
|
|
|
|
+ FreezeYears *string `gorm:"column:freeze_years;type:varchar(20)" json:"freeze_years"` // 冻结期限
|
|
|
|
+ ExecCourt *string `gorm:"column:exec_court;type:varchar(100)" json:"exec_court"` // 执行法院
|
|
|
|
+ ExecNo *string `gorm:"column:exec_no;type:varchar(200)" json:"exec_no"` // 执行裁定书文号
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 状态(0: 有效, 1: 历史)
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ JusticeRecord string `gorm:"column:justice_record;type:char(32);not null" json:"justice_record"` // 司法协助记录
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 最后更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyJusticeFreeze) TableName() string {
|
|
|
|
+ return "company_justice_freeze"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyJusticeInvalid 司法协助失效信息表
|
|
|
|
+type CompanyJusticeInvalid struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ InvalidDate *time.Time `gorm:"column:invalid_date;type:date" json:"invalid_date"` // 失效日期
|
|
|
|
+ InvalidReason *string `gorm:"column:invalid_reason;type:varchar(20)" json:"invalid_reason"` // 失效原因
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 状态(0: 有效,1: 历史)
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ JusticeRecord string `gorm:"column:justice_record;type:char(32);not null" json:"justice_record"` // 司法协助记录
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 最后更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyJusticeInvalid) TableName() string {
|
|
|
|
+ return "company_justice_invalid"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyJusticeUnfreeze 司法协助解除冻结信息表;
|
|
|
|
+type CompanyJusticeUnfreeze struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ UnfreezeDate *time.Time `gorm:"column:unfreeze_date;type:date" json:"unfreeze_date"` // 解除冻结日期
|
|
|
|
+ UnfreezeDocNo *string `gorm:"column:unfreeze_doc_no;type:varchar(200)" json:"unfreeze_doc_no"` // 执行通知书文号
|
|
|
|
+ UnfreezeExecutee *string `gorm:"column:unfreeze_executee;type:varchar(255)" json:"unfreeze_executee"` // 被执行人
|
|
|
|
+ UnfreezeExecuteeIdentifyType *string `gorm:"column:unfreeze_executee_identify_type;type:varchar(50)" json:"unfreeze_executee_identify_type"` // 被执行人证照种类
|
|
|
|
+ UnfreezeExecuteeIdentifyNo *string `gorm:"column:unfreeze_executee_identify_no;type:varchar(50)" json:"unfreeze_executee_identify_no"` // 被执行人证件号码
|
|
|
|
+ UnfreezeExecItem *string `gorm:"column:unfreeze_exec_item;type:varchar(250)" json:"unfreeze_exec_item"` // 执行事项
|
|
|
|
+ UnfreezeEquityAmount *string `gorm:"column:unfreeze_equity_amount;type:varchar(50)" json:"unfreeze_equity_amount"` // 股权数额
|
|
|
|
+ UnfreezePublicDate *time.Time `gorm:"column:unfreeze_public_date;type:date" json:"unfreeze_public_date"` // 公示日期
|
|
|
|
+ UnfreezeExecCourt *string `gorm:"column:unfreeze_exec_court;type:varchar(100)" json:"unfreeze_exec_court"` // 执行法院
|
|
|
|
+ UnfreezeExecNo *string `gorm:"column:unfreeze_exec_no;type:varchar(200)" json:"unfreeze_exec_no"` // 执行裁定书文号
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 状态(0: 有效,1: 历史)
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ JusticeRecord string `gorm:"column:justice_record;type:char(32);not null" json:"justice_record"` // 司法协助记录
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 最后更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyJusticeUnfreeze) TableName() string {
|
|
|
|
+ return "company_justice_unfreeze"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyJusticeKeepFreeze 司法协助续行冻结信息表
|
|
|
|
+type CompanyJusticeKeepFreeze struct {
|
|
|
|
+ ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ PublicDate *time.Time `gorm:"column:public_date;type:date" json:"public_date"` // 冻结公示日期
|
|
|
|
+ DocNo *string `gorm:"column:doc_no;type:varchar(200)" json:"doc_no"` // 执行通知书文号
|
|
|
|
+ Executee *string `gorm:"column:executee;type:varchar(255)" json:"executee"` // 被执行人
|
|
|
|
+ ExecuteeIdentifyType *string `gorm:"column:executee_identify_type;type:varchar(50)" json:"executee_identify_type"` // 被执行人证照种类
|
|
|
|
+ ExecuteeIdentifyNo *string `gorm:"column:executee_identify_no;type:varchar(50)" json:"executee_identify_no"` // 被执行人证件号码
|
|
|
|
+ ExecItem *string `gorm:"column:exec_item;type:varchar(250)" json:"exec_item"` // 执行事项
|
|
|
|
+ EquityAmount *string `gorm:"column:equity_amount;type:varchar(50)" json:"equity_amount"` // 股权数额
|
|
|
|
+ FreezeStartDate *time.Time `gorm:"column:freeze_start_date;type:date" json:"freeze_start_date"` // 冻结期限自
|
|
|
|
+ FreezeEndDate *time.Time `gorm:"column:freeze_end_date;type:date" json:"freeze_end_date"` // 冻结期限至
|
|
|
|
+ FreezeYears *string `gorm:"column:freeze_years;type:varchar(20)" json:"freeze_years"` // 冻结期限
|
|
|
|
+ ExecCourt *string `gorm:"column:exec_court;type:varchar(100)" json:"exec_court"` // 执行法院
|
|
|
|
+ ExecNo *string `gorm:"column:exec_no;type:varchar(200)" json:"exec_no"` // 执行裁定书文号
|
|
|
|
+ JusticeRecord string `gorm:"column:justice_record;type:char(32);not null" json:"justice_record"` // 司法协助记录
|
|
|
|
+ IsHistory *int8 `gorm:"column:is_history;type:tinyint(4);default:0" json:"is_history"` // 状态
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ KeepFreezeRecord string `gorm:"column:keep_freeze_record;type:char(32);not null" json:"keep_freeze_record"` // 续行冻结记录
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 最后更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyJusticeKeepFreeze) TableName() string {
|
|
|
|
+ return "company_justice_keep_freeze"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyClear 企业清算信息表
|
|
|
|
+type CompanyClear struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;unique" json:"company_id"` // 主体唯一键
|
|
|
|
+ ClearDirector *string `gorm:"column:clear_director;type:varchar(200)" json:"clear_director"` // 清算组负责人
|
|
|
|
+ ClearMembers *string `gorm:"column:clear_members;type:varchar(1000)" json:"clear_members"` // 清算成员名称(多个成员英文逗号隔开)
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint(4);default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 最后更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyClear) TableName() string {
|
|
|
|
+ return "company_clear"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// SpecialEnterprise 事业单位信息表
|
|
|
|
+type SpecialEnterprise struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;unique" json:"company_id"` // 主体唯一键
|
|
|
|
+ CreditNo *string `gorm:"column:credit_no;type:varchar(50);index" json:"credit_no"` // 统一信用代码
|
|
|
|
+ CompanyName string `gorm:"column:company_name;type:varchar(255);not null;index" json:"company_name"` // 事业单位名称
|
|
|
|
+ LegalPerson *string `gorm:"column:legal_person;type:varchar(255)" json:"legal_person"` // 法定代表人/负责人
|
|
|
|
+ CompanyStatus *string `gorm:"column:company_status;type:varchar(50)" json:"company_status"` // 单位状态
|
|
|
|
+ Capital *string `gorm:"column:capital;type:varchar(50)" json:"capital"` // 开办资金(万元)
|
|
|
|
+ CompanyType *string `gorm:"column:company_type;type:varchar(50)" json:"company_type"` // 类型
|
|
|
|
+ OperationStartdate *string `gorm:"column:operation_startdate;type:varchar(50)" json:"operation_startdate"` // 有效期起始日期
|
|
|
|
+ OperationEnddate *string `gorm:"column:operation_enddate;type:varchar(50)" json:"operation_enddate"` // 有效期截止日期
|
|
|
|
+ CompanyAddress *string `gorm:"column:company_address;type:varchar(300)" json:"company_address"` // 联系地址
|
|
|
|
+ BusinessScope *string `gorm:"column:business_scope;type:text" json:"business_scope"` // 宗旨和业务范围
|
|
|
|
+ Organizer *string `gorm:"column:organizer;type:varchar(255)" json:"organizer"` // 举办单位
|
|
|
|
+ Authority *string `gorm:"column:authority;type:varchar(255)" json:"authority"` // 登记管理机关
|
|
|
|
+ CapitalSource *string `gorm:"column:capital_source;type:varchar(100)" json:"capital_source"` // 经费来源
|
|
|
|
+ ProvinceShort *string `gorm:"column:province_short;type:varchar(5)" json:"province_short"` // 省份(英文缩写)
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint;default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (SpecialEnterprise) TableName() string {
|
|
|
|
+ return "special_enterprise"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// SpecialGovUnit 机关单位信息表
|
|
|
|
+type SpecialGovUnit struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;unique" json:"company_id"` // 主体唯一键
|
|
|
|
+ CreditNo *string `gorm:"column:credit_no;type:varchar(50);index" json:"credit_no"` // 统一信用代码
|
|
|
|
+ CompanyName string `gorm:"column:company_name;type:varchar(255);not null;index" json:"company_name"` // 机关单位名称
|
|
|
|
+ LegalPerson *string `gorm:"column:legal_person;type:varchar(255)" json:"legal_person"` // 法定代表人或负责人
|
|
|
|
+ CompanyStatus *string `gorm:"column:company_status;type:varchar(50)" json:"company_status"` // 登记状态
|
|
|
|
+ NCompanyStatus *string `gorm:"column:n_company_status;type:varchar(15)" json:"n_company_status"` // 归类后的登记状态
|
|
|
|
+ CompanyType *string `gorm:"column:company_type;type:varchar(100)" json:"company_type"` // 机构类型
|
|
|
|
+ OrganCategory *string `gorm:"column:organ_category;type:varchar(100)" json:"organ_category"` // 机构类别
|
|
|
|
+ CompanyAddress *string `gorm:"column:company_address;type:varchar(300)" json:"company_address"` // 办公地址
|
|
|
|
+ BusinessScope *string `gorm:"column:business_scope;type:text" json:"business_scope"` // 机构职能
|
|
|
|
+ PostCode *string `gorm:"column:post_code;type:varchar(10)" json:"post_code"` // 邮政编码
|
|
|
|
+ ProvinceShort *string `gorm:"column:province_short;type:varchar(5)" json:"province_short"` // 省份(英文缩写)
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint;default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (SpecialGovUnit) TableName() string {
|
|
|
|
+ return "special_gov_unit"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// SpecialLawOffice 律师事务所信息表
|
|
|
|
+type SpecialLawOffice struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;unique" json:"company_id"` // 主体唯一键
|
|
|
|
+ CreditNo *string `gorm:"column:credit_no;type:varchar(50);index" json:"credit_no"` // 统一信用代码
|
|
|
|
+ LicenseNo *string `gorm:"column:license_no;type:varchar(50)" json:"license_no"` // 执业证号
|
|
|
|
+ CompanyName string `gorm:"column:company_name;type:varchar(255);not null;index" json:"company_name"` // 律师事务所名称
|
|
|
|
+ EnName *string `gorm:"column:en_name;type:varchar(255)" json:"en_name"` // 事务所英文名称
|
|
|
|
+ LegalPerson *string `gorm:"column:legal_person;type:varchar(255)" json:"legal_person"` // 负责人
|
|
|
|
+ EstablishDate *time.Time `gorm:"column:establish_date;type:date" json:"establish_date"` // 成立日期
|
|
|
|
+ CompanyStatus *string `gorm:"column:company_status;type:varchar(50)" json:"company_status"` // 执业状态
|
|
|
|
+ CompanyType *string `gorm:"column:company_type;type:varchar(50)" json:"company_type"` // 类型
|
|
|
|
+ ComposionForm *string `gorm:"column:composion_form;type:varchar(100)" json:"composion_form"` // 组成形式
|
|
|
|
+ Capital *string `gorm:"column:capital;type:varchar(50)" json:"capital"` // 注册资金(万元)
|
|
|
|
+ CompanyAddress *string `gorm:"column:company_address;type:varchar(300)" json:"company_address"` // 联系地址
|
|
|
|
+ Organizer *string `gorm:"column:organizer;type:varchar(100)" json:"organizer"` // 主管司法局
|
|
|
|
+ IssueDate *time.Time `gorm:"column:issue_date;type:date" json:"issue_date"` // 发证日期
|
|
|
|
+ LawyerNum *int `gorm:"column:lawyer_num" json:"lawyer_num"` // 律师人数
|
|
|
|
+ WebURL *string `gorm:"column:web_url;type:varchar(255)" json:"web_url"` // 事务所主页
|
|
|
|
+ Phone *string `gorm:"column:phone;type:varchar(50)" json:"phone"` // 电话
|
|
|
|
+ Fax *string `gorm:"column:fax;type:varchar(50)" json:"fax"` // 传真
|
|
|
|
+ EMail *string `gorm:"column:e_mail;type:varchar(100)" json:"e_mail"` // E-mail
|
|
|
|
+ BriefIntroduction *string `gorm:"column:brief_introduction;type:text" json:"brief_introduction"` // 简介
|
|
|
|
+ ProvinceShort *string `gorm:"column:province_short;type:varchar(5)" json:"province_short"` // 省份(英文缩写)
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint;default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (SpecialLawOffice) TableName() string {
|
|
|
|
+ return "special_law_office"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// SpecialSocialOrgan 社会组织信息表
|
|
|
|
+type SpecialSocialOrgan struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;unique" json:"company_id"` // 主体唯一键
|
|
|
|
+ CreditNo *string `gorm:"column:credit_no;type:varchar(50);index" json:"credit_no"` // 统一信用代码
|
|
|
|
+ CompanyName string `gorm:"column:company_name;type:varchar(255);not null;index" json:"company_name"` // 社会组织名称
|
|
|
|
+ LegalPerson *string `gorm:"column:legal_person;type:varchar(255)" json:"legal_person"` // 法定代表人/负责人
|
|
|
|
+ EstablishDate *time.Time `gorm:"column:establish_date;type:date" json:"establish_date"` // 成立日期
|
|
|
|
+ CompanyStatus *string `gorm:"column:company_status;type:varchar(50)" json:"company_status"` // 单位状态
|
|
|
|
+ CompanyType *string `gorm:"column:company_type;type:varchar(50)" json:"company_type"` // 类型
|
|
|
|
+ Capital *string `gorm:"column:capital;type:varchar(50)" json:"capital"` // 注册资金(万元)
|
|
|
|
+ OperationStartDate *string `gorm:"column:operation_startdate;type:varchar(50)" json:"operation_startdate"` // 有效期起始日期
|
|
|
|
+ OperationEndDate *string `gorm:"column:operation_enddate;type:varchar(50)" json:"operation_enddate"` // 有效期截止日期
|
|
|
|
+ CompanyAddress *string `gorm:"column:company_address;type:varchar(300)" json:"company_address"` // 住址
|
|
|
|
+ BusinessScope *string `gorm:"column:business_scope;type:text" json:"business_scope"` // 业务范围
|
|
|
|
+ OrganTag *string `gorm:"column:organ_tag;type:varchar(255)" json:"organ_tag"` // 组织标识
|
|
|
|
+ Organizer *string `gorm:"column:organizer;type:varchar(255)" json:"organizer"` // 业务主管单位
|
|
|
|
+ Authority *string `gorm:"column:authority;type:varchar(255)" json:"authority"` // 登记管理机关
|
|
|
|
+ ProvinceShort *string `gorm:"column:province_short;type:varchar(5)" json:"province_short"` // 省份(英文缩写)
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint;default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (SpecialSocialOrgan) TableName() string {
|
|
|
|
+ return "special_social_organ"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// SpecialTradeUnion 工会信息表
|
|
|
|
+type SpecialTradeUnion struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;unique" json:"company_id"` // 主体唯一键
|
|
|
|
+ CreditNo *string `gorm:"column:credit_no;type:varchar(50);index" json:"credit_no"` // 统一信用代码
|
|
|
|
+ CompanyName string `gorm:"column:company_name;type:varchar(255);not null;index" json:"company_name"` // 工会名称
|
|
|
|
+ EstablishDate *time.Time `gorm:"column:establish_date;type:date" json:"establish_date"` // 成立日期
|
|
|
|
+ LegalPerson *string `gorm:"column:legal_person;type:varchar(255)" json:"legal_person"` // 法定代表人或负责人
|
|
|
|
+ CompanyStatus *string `gorm:"column:company_status;type:varchar(50)" json:"company_status"` // 登记状态
|
|
|
|
+ NCompanyStatus *string `gorm:"column:n_company_status;type:varchar(15)" json:"n_company_status"` // 归类后的登记状态
|
|
|
|
+ OperationStartDate *string `gorm:"column:operation_startdate;type:varchar(50)" json:"operation_startdate"` // 有效期起始日期
|
|
|
|
+ OperationEndDate *string `gorm:"column:operation_enddate;type:varchar(50)" json:"operation_enddate"` // 有效期截止日期
|
|
|
|
+ CompanyAddress *string `gorm:"column:company_address;type:varchar(300)" json:"company_address"` // 住所地址
|
|
|
|
+ Authority *string `gorm:"column:authority;type:varchar(255)" json:"authority"` // 发证机关
|
|
|
|
+ ProvinceShort *string `gorm:"column:province_short;type:varchar(5)" json:"province_short"` // 省份(英文缩写)
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint;default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (SpecialTradeUnion) TableName() string {
|
|
|
|
+ return "special_trade_union"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// SpecialHongkongCompany 香港公司信息表
|
|
|
|
+type SpecialHongkongCompany struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;unique" json:"company_id"` // 主体唯一键
|
|
|
|
+ CompanyCode *string `gorm:"column:company_code;type:varchar(50);index" json:"company_code"` // 公司编号
|
|
|
|
+ CompanyName string `gorm:"column:company_name;type:varchar(255);not null;index" json:"company_name"` // 公司名称
|
|
|
|
+ TraditionalName *string `gorm:"column:traditional_name;type:varchar(255)" json:"traditional_name"` // 公司繁体名称
|
|
|
|
+ EnName *string `gorm:"column:en_name;type:varchar(255)" json:"en_name"` // 公司英文名称
|
|
|
|
+ CompanyType *string `gorm:"column:company_type;type:varchar(255)" json:"company_type"` // 公司类别
|
|
|
|
+ EstablishDate *time.Time `gorm:"column:establish_date;type:date" json:"establish_date"` // 成立日期
|
|
|
|
+ ProvinceShort *string `gorm:"column:province_short;type:varchar(5)" json:"province_short"` // 省份(英文缩写)
|
|
|
|
+ CompanyStatus *string `gorm:"column:company_status;type:varchar(100)" json:"company_status"` // 公司现况
|
|
|
|
+ LiquidationMode *string `gorm:"column:liquidation_mode;type:varchar(255)" json:"liquidation_mode"` // 清盘模式
|
|
|
|
+ CancelDate *time.Time `gorm:"column:cancel_date;type:date" json:"cancel_date"` // 已告解散日期/不再是独立实体日期
|
|
|
|
+ Mortgage *string `gorm:"column:mortgage;type:varchar(255)" json:"mortgage"` // 押记登记册
|
|
|
|
+ ImpMatters *string `gorm:"column:imp_matters;type:varchar(255)" json:"imp_matters"` // 重要事项
|
|
|
|
+ BrCode *string `gorm:"column:br_code;type:varchar(100)" json:"br_code"` // 商业登记代码
|
|
|
|
+ Remark *string `gorm:"column:remark;type:varchar(1000)" json:"remark"` // 备注
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint;default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (SpecialHongkongCompany) TableName() string {
|
|
|
|
+ return "special_hongkong_company"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// SpecialHongkongCompanyHistory 香港公司历史变更记录表
|
|
|
|
+type SpecialHongkongCompanyHistory struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;index" json:"company_id"` // 主体唯一键
|
|
|
|
+ UseName *string `gorm:"column:use_name;type:varchar(255)" json:"use_name"` // 变更中文名
|
|
|
|
+ UseEnName *string `gorm:"column:use_en_name;type:varchar(255)" json:"use_en_name"` // 变更英文名
|
|
|
|
+ ChangeDate *time.Time `gorm:"column:change_date;type:date" json:"change_date"` // 变更日期
|
|
|
|
+ ChangeField *string `gorm:"column:change_field;type:varchar(200)" json:"change_field"` // 变更类型
|
|
|
|
+ ChangeRecord string `gorm:"column:change_record;type:char(32);not null" json:"change_record"` // 变更记录
|
|
|
|
+ UseFlag *int8 `gorm:"column:use_flag;type:tinyint;default:0" json:"use_flag"` // 使用标记
|
|
|
|
+ CreateTime *time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP;index" json:"create_time"` // 入库时间
|
|
|
|
+ UpdateTime *time.Time `gorm:"column:update_time;type:datetime;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (SpecialHongkongCompanyHistory) TableName() string {
|
|
|
|
+ return "special_hongkong_company_history"
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CompanyBaseClean 基本信息清洗后字段表
|
|
|
|
+type CompanyBaseClean struct {
|
|
|
|
+ ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` // 自增主键
|
|
|
|
+ CompanyID string `gorm:"column:company_id;type:char(32);not null;uniqueIndex" json:"company_id"` // 主体唯一键
|
|
|
|
+ NCompanyStatus *string `gorm:"column:n_company_status;type:varchar(8);index" json:"n_company_status"` // 归类后的登记状态
|
|
|
|
+ CompanyMajorType *int16 `gorm:"column:company_major_type;type:smallint;index" json:"company_major_type"` // 归类后的主体类型,1:个体户,2:合作社,3:企业
|
|
|
|
+ ProvinceShort *string `gorm:"column:province_short;type:varchar(5)" json:"province_short"` // 省份大写英文缩写
|
|
|
|
+ City *string `gorm:"column:city;type:varchar(16)" json:"city"` // 地市
|
|
|
|
+ District *string `gorm:"column:district;type:varchar(16)" json:"district"` // 区县
|
|
|
|
+ StockStatus *string `gorm:"column:stock_status;type:varchar(8);index" json:"stock_status"` // 上市状态 (上市、退市)
|
|
|
|
+ UseFlag *int16 `gorm:"column:use_flag;type:smallint;default:0" json:"use_flag"` // 数据使用标记,0有效,1废弃
|
|
|
|
+ CreateTime time.Time `gorm:"column:create_time;type:datetime;not null;default:CURRENT_TIMESTAMP" json:"create_time"` // 创建时间
|
|
|
|
+ UpdateTime time.Time `gorm:"column:update_time;type:datetime;not null;default:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index" json:"update_time"` // 更新时间
|
|
|
|
+ Location *string `gorm:"column:location;type:varchar(64)" json:"location"` // 经纬度
|
|
|
|
+ CapitalNum *float64 `gorm:"column:capital_num;type:decimal(40,6)" json:"capital_num"` // 注册资本数值,量纲-万
|
|
|
|
+ Currency *string `gorm:"column:currency;type:varchar(15)" json:"currency"` // 注册资本币种,默认人民币
|
|
|
|
+ OriginalCompanyName string `gorm:"column:original_company_name;type:varchar(255);not null" json:"original_company_name"` // 原始主体名称
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (CompanyBaseClean) TableName() string {
|
|
|
|
+ return "company_base_clean"
|
|
|
|
+}
|