|
|
package models
|
|
|
|
|
|
import (
|
|
|
"time"
|
|
|
)
|
|
|
|
|
|
type TBaseOrganization struct {
|
|
|
OrgId string `xorm:"not null pk comment('组织机构ID') CHAR(36)"`
|
|
|
OrgCode string `xorm:"not null default '''' comment('组织机构编码') index CHAR(30)"`
|
|
|
OrgName string `xorm:"not null default '''' comment('组织机构名称') index(org_name) VARCHAR(255)"`
|
|
|
ParentId string `xorm:"not null default '''' comment('上级部门ID,单位填0') CHAR(36)"`
|
|
|
BureauId string `xorm:"not null default '''' comment('所在单位ID') CHAR(36)"`
|
|
|
OrgType int32 `xorm:"not null default -1 comment('组织机构类型 1:教育局 2:学校 3:部门 4:院 5:系 6:专业 7:教辅单位,8:大学区') index(org_type) INT(11)"`
|
|
|
EduAssistType int32 `xorm:"not null default 0 comment('教辅单位类型') INT(11)"`
|
|
|
MainSchoolType int32 `xorm:"not null default 1 comment('主校类型,1:普通校,2:主校,3:分校') INT(11)"`
|
|
|
MainSchoolId string `xorm:"not null default '''' comment('如果是分校,所属主校的ID,如果是主校,是自己的ID,如果是分校,是主校ID,如果是普通校,也是自己的ID') CHAR(36)"`
|
|
|
ManageOrgId string `xorm:"not null default '''' comment('上级管理单位ID(*一个单位只能有一个上级管理单位)') CHAR(36)"`
|
|
|
DirectlyUnderType int32 `xorm:"not null default 0 comment('直属类型 1:普通 2:省直 3:市直') INT(11)"`
|
|
|
Xxbbm string `xorm:"not null default '''' comment('学校办别(学校专有属性)有字典') CHAR(2)"`
|
|
|
Xxbxlxm string `xorm:"not null default '''' comment('学校办学类型(学校专有属性)有字典') CHAR(3)"`
|
|
|
Szdcxlxm string `xorm:"not null default '''' comment('学校城乡类型(学校专有属性)有字典') CHAR(2)"`
|
|
|
Xxjbzm string `xorm:"not null default '''' comment('学校举办者(学校专有属性)有字典') CHAR(3)"`
|
|
|
Fzr string `xorm:"not null default '''' comment('机构负责人ID(*一个单位只能有一个负责人)') CHAR(36)"`
|
|
|
Fddbr string `xorm:"not null default '''' comment('机构法定代表人') VARCHAR(50)"`
|
|
|
Fddbrdh string `xorm:"not null default '''' comment('机构法定代表人电话') VARCHAR(50)"`
|
|
|
Address string `xorm:"not null comment('组织机构地址') VARCHAR(255)"`
|
|
|
Lxdh string `xorm:"not null default '''' comment('机构联系电话') VARCHAR(50)"`
|
|
|
OrgLng float32 `xorm:"not null default 0 comment('组织机构经度') FLOAT"`
|
|
|
OrgLat float32 `xorm:"not null default 0 comment('组织机构纬度') FLOAT"`
|
|
|
SortId int32 `xorm:"not null default 0 comment('排序号(在获取信息时如果排序号大于9999,前台不显示)') INT(11)"`
|
|
|
BUse int32 `xorm:"not null default 1 comment('是否启用 -1:未启用 1:启用') index(org_name) TINYINT(1)"`
|
|
|
ProvinceCode string `xorm:"not null default '''' comment('所在省行政区划码') CHAR(6)"`
|
|
|
CityCode string `xorm:"not null default '''' comment('所在市行政区划码') CHAR(6)"`
|
|
|
DistrictCode string `xorm:"not null default '''' comment('所在区行政区划码') CHAR(6)"`
|
|
|
AreaCode string `xorm:"not null default '''' comment('所在行政区划码') index(org_type) CHAR(6)"`
|
|
|
CreateTime time.Time `xorm:"not null default 'current_timestamp()' comment('创建时间') TIMESTAMP"`
|
|
|
}
|