Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // WithGlobalUniqueID sets the universal ids options to the migration. // If this option is enabled, ent migration will allocate a 1<<32 range // for the ids of each entity (table). // Note that this option cannot be applied on tables that already exist. WithGlobalUniqueID = schema.WithGlobalUniqueID // WithDropColumn sets the drop column option to the migration. // If this option is enabled, ent migration will drop old columns // that were used for both fields and edges. This defaults to false. WithDropColumn = schema.WithDropColumn // WithDropIndex sets the drop index option to the migration. // If this option is enabled, ent migration will drop old indexes // that were defined in the schema. This defaults to false. // Note that unique constraints are defined using `UNIQUE INDEX`, // and therefore, it's recommended to enable this option to get more // flexibility in the schema changes. WithDropIndex = schema.WithDropIndex // WithForeignKeys enables creating foreign-key in schema DDL. This defaults to true. WithForeignKeys = schema.WithForeignKeys )
View Source
var ( // Rent591homesColumns holds the columns for the "rent591homes" table. Rent591homesColumns = []*schema.Column{ {Name: "id", Type: field.TypeInt, Increment: true}, {Name: "title", Type: field.TypeString}, {Name: "type", Type: field.TypeInt}, {Name: "post_id", Type: field.TypeInt, Unique: true}, {Name: "kind_name", Type: field.TypeString}, {Name: "room_str", Type: field.TypeString}, {Name: "floor_str", Type: field.TypeString}, {Name: "community", Type: field.TypeString}, {Name: "price", Type: field.TypeInt}, {Name: "price_unit", Type: field.TypeString}, {Name: "photo_list", Type: field.TypeJSON, Nullable: true}, {Name: "region_name", Type: field.TypeString, Nullable: true}, {Name: "section_name", Type: field.TypeString}, {Name: "street_name", Type: field.TypeString}, {Name: "location", Type: field.TypeString}, {Name: "area", Type: field.TypeString}, {Name: "role_name", Type: field.TypeString}, {Name: "contact", Type: field.TypeString}, {Name: "refresh_time", Type: field.TypeString}, {Name: "yesterday_hit", Type: field.TypeInt}, {Name: "is_vip", Type: field.TypeInt}, {Name: "is_combine", Type: field.TypeInt}, {Name: "hurry", Type: field.TypeInt}, {Name: "is_social", Type: field.TypeInt}, {Name: "discount_price_str", Type: field.TypeString}, {Name: "cases_id", Type: field.TypeInt}, {Name: "is_video", Type: field.TypeInt}, {Name: "preferred", Type: field.TypeInt}, {Name: "cid", Type: field.TypeInt}, {Name: "created_at", Type: field.TypeTime}, {Name: "updated_at", Type: field.TypeTime}, } // Rent591homesTable holds the schema information for the "rent591homes" table. Rent591homesTable = &schema.Table{ Name: "rent591homes", Columns: Rent591homesColumns, PrimaryKey: []*schema.Column{Rent591homesColumns[0]}, } // Rent591homeDetailsColumns holds the columns for the "rent591home_details" table. Rent591homeDetailsColumns = []*schema.Column{ {Name: "id", Type: field.TypeInt, Increment: true}, {Name: "title", Type: field.TypeString}, {Name: "deposit", Type: field.TypeString}, {Name: "kind", Type: field.TypeInt}, {Name: "relieved", Type: field.TypeInt}, {Name: "region_id", Type: field.TypeInt}, {Name: "section_id", Type: field.TypeInt}, {Name: "deal_text", Type: field.TypeString, Nullable: true}, {Name: "deal_time", Type: field.TypeInt}, {Name: "price", Type: field.TypeInt}, {Name: "price_unit", Type: field.TypeString}, {Name: "created_at", Type: field.TypeTime}, {Name: "updated_at", Type: field.TypeTime}, {Name: "rent591home_rent591home_details", Type: field.TypeInt, Unique: true, Nullable: true}, } // Rent591homeDetailsTable holds the schema information for the "rent591home_details" table. Rent591homeDetailsTable = &schema.Table{ Name: "rent591home_details", Columns: Rent591homeDetailsColumns, PrimaryKey: []*schema.Column{Rent591homeDetailsColumns[0]}, ForeignKeys: []*schema.ForeignKey{ { Symbol: "rent591home_details_rent591homes_rent591home_details", Columns: []*schema.Column{Rent591homeDetailsColumns[13]}, RefColumns: []*schema.Column{Rent591homesColumns[0]}, OnDelete: schema.SetNull, }, }, } // Rent591homeDetailBreadcrumbsColumns holds the columns for the "rent591home_detail_breadcrumbs" table. Rent591homeDetailBreadcrumbsColumns = []*schema.Column{ {Name: "id", Type: field.TypeInt, Increment: true}, {Name: "name", Type: field.TypeString}, {Name: "post_id", Type: field.TypeInt}, {Name: "query", Type: field.TypeString}, {Name: "link", Type: field.TypeString}, } // Rent591homeDetailBreadcrumbsTable holds the schema information for the "rent591home_detail_breadcrumbs" table. Rent591homeDetailBreadcrumbsTable = &schema.Table{ Name: "rent591home_detail_breadcrumbs", Columns: Rent591homeDetailBreadcrumbsColumns, PrimaryKey: []*schema.Column{Rent591homeDetailBreadcrumbsColumns[0]}, } // Rent591homeDetailBrowsesColumns holds the columns for the "rent591home_detail_browses" table. Rent591homeDetailBrowsesColumns = []*schema.Column{ {Name: "id", Type: field.TypeInt, Increment: true}, {Name: "pc", Type: field.TypeInt}, {Name: "mobile", Type: field.TypeInt}, } // Rent591homeDetailBrowsesTable holds the schema information for the "rent591home_detail_browses" table. Rent591homeDetailBrowsesTable = &schema.Table{ Name: "rent591home_detail_browses", Columns: Rent591homeDetailBrowsesColumns, PrimaryKey: []*schema.Column{Rent591homeDetailBrowsesColumns[0]}, } // Rent591homeDetailInfosColumns holds the columns for the "rent591home_detail_infos" table. Rent591homeDetailInfosColumns = []*schema.Column{ {Name: "id", Type: field.TypeInt, Increment: true}, {Name: "name", Type: field.TypeString}, {Name: "value", Type: field.TypeString}, {Name: "key", Type: field.TypeInt}, } // Rent591homeDetailInfosTable holds the schema information for the "rent591home_detail_infos" table. Rent591homeDetailInfosTable = &schema.Table{ Name: "rent591home_detail_infos", Columns: Rent591homeDetailInfosColumns, PrimaryKey: []*schema.Column{Rent591homeDetailInfosColumns[0]}, } Rent591homeDetailNavDataColumns = []*schema.Column{ {Name: "id", Type: field.TypeInt, Increment: true}, {Name: "title", Type: field.TypeString}, {Name: "key", Type: field.TypeString}, {Name: "active", Type: field.TypeInt}, } Rent591homeDetailNavDataTable = &schema.Table{ Name: "rent591home_detail_nav_data", Columns: Rent591homeDetailNavDataColumns, PrimaryKey: []*schema.Column{Rent591homeDetailNavDataColumns[0]}, } // Rent591homeDetailPositionRoundsColumns holds the columns for the "rent591home_detail_position_rounds" table. Rent591homeDetailPositionRoundsColumns = []*schema.Column{ {Name: "id", Type: field.TypeInt, Increment: true}, {Name: "title", Type: field.TypeString}, {Name: "key", Type: field.TypeString}, {Name: "active", Type: field.TypeInt}, {Name: "community_name", Type: field.TypeString}, {Name: "community_id", Type: field.TypeInt}, {Name: "address", Type: field.TypeString}, {Name: "lat", Type: field.TypeFloat64}, {Name: "lng", Type: field.TypeFloat64}, {Name: "rent591home_detail_rent591home_detail_position_rounds", Type: field.TypeInt, Unique: true, Nullable: true}, } // Rent591homeDetailPositionRoundsTable holds the schema information for the "rent591home_detail_position_rounds" table. Rent591homeDetailPositionRoundsTable = &schema.Table{ Name: "rent591home_detail_position_rounds", Columns: Rent591homeDetailPositionRoundsColumns, PrimaryKey: []*schema.Column{Rent591homeDetailPositionRoundsColumns[0]}, ForeignKeys: []*schema.ForeignKey{ { Symbol: "rent591home_detail_position_rounds_rent591home_details_rent591home_detail_position_rounds", Columns: []*schema.Column{Rent591homeDetailPositionRoundsColumns[9]}, RefColumns: []*schema.Column{Rent591homeDetailsColumns[0]}, OnDelete: schema.SetNull, }, }, } // Rent591homeDetailPositionRoundDataColumns holds the columns for the "rent591home_detail_position_round_data" table. Rent591homeDetailPositionRoundDataColumns = []*schema.Column{ {Name: "id", Type: field.TypeInt, Increment: true}, {Name: "name", Type: field.TypeString}, {Name: "key", Type: field.TypeString}, } // Rent591homeDetailPositionRoundDataTable holds the schema information for the "rent591home_detail_position_round_data" table. Rent591homeDetailPositionRoundDataTable = &schema.Table{ Name: "rent591home_detail_position_round_data", Columns: Rent591homeDetailPositionRoundDataColumns, PrimaryKey: []*schema.Column{Rent591homeDetailPositionRoundDataColumns[0]}, } // Rent591homeDetailPositionRoundDataChildrensColumns holds the columns for the "rent591home_detail_position_round_data_childrens" table. Rent591homeDetailPositionRoundDataChildrensColumns = []*schema.Column{ {Name: "id", Type: field.TypeInt, Increment: true}, {Name: "name", Type: field.TypeString}, {Name: "key", Type: field.TypeString}, } // Rent591homeDetailPositionRoundDataChildrensTable holds the schema information for the "rent591home_detail_position_round_data_childrens" table. Rent591homeDetailPositionRoundDataChildrensTable = &schema.Table{ Name: "rent591home_detail_position_round_data_childrens", Columns: Rent591homeDetailPositionRoundDataChildrensColumns, PrimaryKey: []*schema.Column{Rent591homeDetailPositionRoundDataChildrensColumns[0]}, } // Rent591homeDetailPublishesColumns holds the columns for the "rent591home_detail_publishes" table. Rent591homeDetailPublishesColumns = []*schema.Column{ {Name: "id", Type: field.TypeInt, Increment: true}, {Name: "post_id", Type: field.TypeInt}, {Name: "name", Type: field.TypeString}, {Name: "key", Type: field.TypeString}, {Name: "post_time", Type: field.TypeString}, {Name: "update_time", Type: field.TypeString}, } // Rent591homeDetailPublishesTable holds the schema information for the "rent591home_detail_publishes" table. Rent591homeDetailPublishesTable = &schema.Table{ Name: "rent591home_detail_publishes", Columns: Rent591homeDetailPublishesColumns, PrimaryKey: []*schema.Column{Rent591homeDetailPublishesColumns[0]}, } Rent591homeDetailShareInfosColumns = []*schema.Column{ {Name: "id", Type: field.TypeInt, Increment: true}, {Name: "url", Type: field.TypeString}, {Name: "from", Type: field.TypeString}, {Name: "title", Type: field.TypeString}, } Rent591homeDetailShareInfosTable = &schema.Table{ Name: "rent591home_detail_share_infos", Columns: Rent591homeDetailShareInfosColumns, PrimaryKey: []*schema.Column{Rent591homeDetailShareInfosColumns[0]}, } // Rent591homeDetailTagsColumns holds the columns for the "rent591home_detail_tags" table. Rent591homeDetailTagsColumns = []*schema.Column{ {Name: "id", Type: field.TypeInt, Increment: true}, {Name: "post_id", Type: field.TypeInt}, {Name: "value", Type: field.TypeString}, } // Rent591homeDetailTagsTable holds the schema information for the "rent591home_detail_tags" table. Rent591homeDetailTagsTable = &schema.Table{ Name: "rent591home_detail_tags", Columns: Rent591homeDetailTagsColumns, PrimaryKey: []*schema.Column{Rent591homeDetailTagsColumns[0]}, } // Rent591homeSurroundingsColumns holds the columns for the "rent591home_surroundings" table. Rent591homeSurroundingsColumns = []*schema.Column{ {Name: "id", Type: field.TypeInt, Increment: true}, {Name: "type", Type: field.TypeString}, {Name: "desc", Type: field.TypeString}, {Name: "distance", Type: field.TypeString}, {Name: "created_at", Type: field.TypeTime}, {Name: "rent591home_rent591home_surroundings", Type: field.TypeInt, Unique: true, Nullable: true}, } // Rent591homeSurroundingsTable holds the schema information for the "rent591home_surroundings" table. Rent591homeSurroundingsTable = &schema.Table{ Name: "rent591home_surroundings", Columns: Rent591homeSurroundingsColumns, PrimaryKey: []*schema.Column{Rent591homeSurroundingsColumns[0]}, ForeignKeys: []*schema.ForeignKey{ { Symbol: "rent591home_surroundings_rent591homes_rent591home_surroundings", Columns: []*schema.Column{Rent591homeSurroundingsColumns[5]}, RefColumns: []*schema.Column{Rent591homesColumns[0]}, OnDelete: schema.SetNull, }, }, } // Rent591homeTagsColumns holds the columns for the "rent591home_tags" table. Rent591homeTagsColumns = []*schema.Column{ {Name: "id", Type: field.TypeInt, Increment: true}, {Name: "name", Type: field.TypeString, Unique: true}, {Name: "created_at", Type: field.TypeTime}, } // Rent591homeTagsTable holds the schema information for the "rent591home_tags" table. Rent591homeTagsTable = &schema.Table{ Name: "rent591home_tags", Columns: Rent591homeTagsColumns, PrimaryKey: []*schema.Column{Rent591homeTagsColumns[0]}, } Rent591homeDetailRent591homeDetailShareinfosColumns = []*schema.Column{ {Name: "rent591home_detail_id", Type: field.TypeInt}, {Name: "rent591home_detail_share_info_id", Type: field.TypeInt}, } Rent591homeDetailRent591homeDetailShareinfosTable = &schema.Table{ Name: "rent591home_detail_rent591home_detail_shareinfos", Columns: Rent591homeDetailRent591homeDetailShareinfosColumns, PrimaryKey: []*schema.Column{Rent591homeDetailRent591homeDetailShareinfosColumns[0], Rent591homeDetailRent591homeDetailShareinfosColumns[1]}, ForeignKeys: []*schema.ForeignKey{ { Symbol: "rent591home_detail_rent591home_detail_shareinfos_rent591home_detail_id", Columns: []*schema.Column{Rent591homeDetailRent591homeDetailShareinfosColumns[0]}, RefColumns: []*schema.Column{Rent591homeDetailsColumns[0]}, OnDelete: schema.Cascade, }, { Symbol: "rent591home_detail_rent591home_detail_shareinfos_rent591home_detail_share_info_id", Columns: []*schema.Column{Rent591homeDetailRent591homeDetailShareinfosColumns[1]}, RefColumns: []*schema.Column{Rent591homeDetailShareInfosColumns[0]}, OnDelete: schema.Cascade, }, }, } // Rent591homeDetailRent591homeDetailBrowsesColumns holds the columns for the "rent591home_detail_rent591home_detail_browses" table. Rent591homeDetailRent591homeDetailBrowsesColumns = []*schema.Column{ {Name: "rent591home_detail_id", Type: field.TypeInt}, {Name: "rent591home_detail_browse_id", Type: field.TypeInt}, } // Rent591homeDetailRent591homeDetailBrowsesTable holds the schema information for the "rent591home_detail_rent591home_detail_browses" table. Rent591homeDetailRent591homeDetailBrowsesTable = &schema.Table{ Name: "rent591home_detail_rent591home_detail_browses", Columns: Rent591homeDetailRent591homeDetailBrowsesColumns, PrimaryKey: []*schema.Column{Rent591homeDetailRent591homeDetailBrowsesColumns[0], Rent591homeDetailRent591homeDetailBrowsesColumns[1]}, ForeignKeys: []*schema.ForeignKey{ { Symbol: "rent591home_detail_rent591home_detail_browses_rent591home_detail_id", Columns: []*schema.Column{Rent591homeDetailRent591homeDetailBrowsesColumns[0]}, RefColumns: []*schema.Column{Rent591homeDetailsColumns[0]}, OnDelete: schema.Cascade, }, { Symbol: "rent591home_detail_rent591home_detail_browses_rent591home_detail_browse_id", Columns: []*schema.Column{Rent591homeDetailRent591homeDetailBrowsesColumns[1]}, RefColumns: []*schema.Column{Rent591homeDetailBrowsesColumns[0]}, OnDelete: schema.Cascade, }, }, } // Rent591homeDetailRent591homeDetailPublishsColumns holds the columns for the "rent591home_detail_rent591home_detail_publishs" table. Rent591homeDetailRent591homeDetailPublishsColumns = []*schema.Column{ {Name: "rent591home_detail_id", Type: field.TypeInt}, {Name: "rent591home_detail_publish_id", Type: field.TypeInt}, } // Rent591homeDetailRent591homeDetailPublishsTable holds the schema information for the "rent591home_detail_rent591home_detail_publishs" table. Rent591homeDetailRent591homeDetailPublishsTable = &schema.Table{ Name: "rent591home_detail_rent591home_detail_publishs", Columns: Rent591homeDetailRent591homeDetailPublishsColumns, PrimaryKey: []*schema.Column{Rent591homeDetailRent591homeDetailPublishsColumns[0], Rent591homeDetailRent591homeDetailPublishsColumns[1]}, ForeignKeys: []*schema.ForeignKey{ { Symbol: "rent591home_detail_rent591home_detail_publishs_rent591home_detail_id", Columns: []*schema.Column{Rent591homeDetailRent591homeDetailPublishsColumns[0]}, RefColumns: []*schema.Column{Rent591homeDetailsColumns[0]}, OnDelete: schema.Cascade, }, { Symbol: "rent591home_detail_rent591home_detail_publishs_rent591home_detail_publish_id", Columns: []*schema.Column{Rent591homeDetailRent591homeDetailPublishsColumns[1]}, RefColumns: []*schema.Column{Rent591homeDetailPublishesColumns[0]}, OnDelete: schema.Cascade, }, }, } // Rent591homeDetailBreadcrumbRent591homeDetailsColumns holds the columns for the "rent591home_detail_breadcrumb_rent591home_details" table. Rent591homeDetailBreadcrumbRent591homeDetailsColumns = []*schema.Column{ {Name: "rent591home_detail_breadcrumb_id", Type: field.TypeInt}, {Name: "rent591home_detail_id", Type: field.TypeInt}, } // Rent591homeDetailBreadcrumbRent591homeDetailsTable holds the schema information for the "rent591home_detail_breadcrumb_rent591home_details" table. Rent591homeDetailBreadcrumbRent591homeDetailsTable = &schema.Table{ Name: "rent591home_detail_breadcrumb_rent591home_details", Columns: Rent591homeDetailBreadcrumbRent591homeDetailsColumns, PrimaryKey: []*schema.Column{Rent591homeDetailBreadcrumbRent591homeDetailsColumns[0], Rent591homeDetailBreadcrumbRent591homeDetailsColumns[1]}, ForeignKeys: []*schema.ForeignKey{ { Symbol: "rent591home_detail_breadcrumb_rent591home_details_rent591home_detail_breadcrumb_id", Columns: []*schema.Column{Rent591homeDetailBreadcrumbRent591homeDetailsColumns[0]}, RefColumns: []*schema.Column{Rent591homeDetailBreadcrumbsColumns[0]}, OnDelete: schema.Cascade, }, { Symbol: "rent591home_detail_breadcrumb_rent591home_details_rent591home_detail_id", Columns: []*schema.Column{Rent591homeDetailBreadcrumbRent591homeDetailsColumns[1]}, RefColumns: []*schema.Column{Rent591homeDetailsColumns[0]}, OnDelete: schema.Cascade, }, }, } // Rent591homeDetailInfoRent591homeDetailsColumns holds the columns for the "rent591home_detail_info_rent591home_details" table. Rent591homeDetailInfoRent591homeDetailsColumns = []*schema.Column{ {Name: "rent591home_detail_info_id", Type: field.TypeInt}, {Name: "rent591home_detail_id", Type: field.TypeInt}, } // Rent591homeDetailInfoRent591homeDetailsTable holds the schema information for the "rent591home_detail_info_rent591home_details" table. Rent591homeDetailInfoRent591homeDetailsTable = &schema.Table{ Name: "rent591home_detail_info_rent591home_details", Columns: Rent591homeDetailInfoRent591homeDetailsColumns, PrimaryKey: []*schema.Column{Rent591homeDetailInfoRent591homeDetailsColumns[0], Rent591homeDetailInfoRent591homeDetailsColumns[1]}, ForeignKeys: []*schema.ForeignKey{ { Symbol: "rent591home_detail_info_rent591home_details_rent591home_detail_info_id", Columns: []*schema.Column{Rent591homeDetailInfoRent591homeDetailsColumns[0]}, RefColumns: []*schema.Column{Rent591homeDetailInfosColumns[0]}, OnDelete: schema.Cascade, }, { Symbol: "rent591home_detail_info_rent591home_details_rent591home_detail_id", Columns: []*schema.Column{Rent591homeDetailInfoRent591homeDetailsColumns[1]}, RefColumns: []*schema.Column{Rent591homeDetailsColumns[0]}, OnDelete: schema.Cascade, }, }, } Rent591homeDetailNavDataRent591homeDetailsColumns = []*schema.Column{ {Name: "rent591home_detail_nav_data_id", Type: field.TypeInt}, {Name: "rent591home_detail_id", Type: field.TypeInt}, } Rent591homeDetailNavDataRent591homeDetailsTable = &schema.Table{ Name: "rent591home_detail_nav_data_rent591home_details", Columns: Rent591homeDetailNavDataRent591homeDetailsColumns, PrimaryKey: []*schema.Column{Rent591homeDetailNavDataRent591homeDetailsColumns[0], Rent591homeDetailNavDataRent591homeDetailsColumns[1]}, ForeignKeys: []*schema.ForeignKey{ { Symbol: "rent591home_detail_nav_data_rent591home_details_rent591home_detail_nav_data_id", Columns: []*schema.Column{Rent591homeDetailNavDataRent591homeDetailsColumns[0]}, RefColumns: []*schema.Column{Rent591homeDetailNavDataColumns[0]}, OnDelete: schema.Cascade, }, { Symbol: "rent591home_detail_nav_data_rent591home_details_rent591home_detail_id", Columns: []*schema.Column{Rent591homeDetailNavDataRent591homeDetailsColumns[1]}, RefColumns: []*schema.Column{Rent591homeDetailsColumns[0]}, OnDelete: schema.Cascade, }, }, } // Rent591homeDPRRent591homeDPRDsColumns holds the columns for the "rent591home_d_p_r_rent591home_d_p_r_ds" table. Rent591homeDPRRent591homeDPRDsColumns = []*schema.Column{ {Name: "rent591home_detail_position_round_id", Type: field.TypeInt}, {Name: "rent591home_detail_position_round_data_id", Type: field.TypeInt}, } // Rent591homeDPRRent591homeDPRDsTable holds the schema information for the "rent591home_d_p_r_rent591home_d_p_r_ds" table. Rent591homeDPRRent591homeDPRDsTable = &schema.Table{ Name: "rent591home_d_p_r_rent591home_d_p_r_ds", Columns: Rent591homeDPRRent591homeDPRDsColumns, PrimaryKey: []*schema.Column{Rent591homeDPRRent591homeDPRDsColumns[0], Rent591homeDPRRent591homeDPRDsColumns[1]}, ForeignKeys: []*schema.ForeignKey{ { Symbol: "rent591home_d_p_r_rent591home_d_p_r_ds_rent591home_detail_position_round_id", Columns: []*schema.Column{Rent591homeDPRRent591homeDPRDsColumns[0]}, RefColumns: []*schema.Column{Rent591homeDetailPositionRoundsColumns[0]}, OnDelete: schema.Cascade, }, { Symbol: "rent591home_d_p_r_rent591home_d_p_r_ds_rent591home_detail_position_round_data_id", Columns: []*schema.Column{Rent591homeDPRRent591homeDPRDsColumns[1]}, RefColumns: []*schema.Column{Rent591homeDetailPositionRoundDataColumns[0]}, OnDelete: schema.Cascade, }, }, } // Rent591homeDPRDsRent591homeDPRDCsColumns holds the columns for the "rent591home_d_p_r_ds_rent591home_d_p_r_d_cs" table. Rent591homeDPRDsRent591homeDPRDCsColumns = []*schema.Column{ {Name: "rent591home_detail_position_round_data_id", Type: field.TypeInt}, {Name: "rent591home_detail_position_round_data_children_id", Type: field.TypeInt}, } // Rent591homeDPRDsRent591homeDPRDCsTable holds the schema information for the "rent591home_d_p_r_ds_rent591home_d_p_r_d_cs" table. Rent591homeDPRDsRent591homeDPRDCsTable = &schema.Table{ Name: "rent591home_d_p_r_ds_rent591home_d_p_r_d_cs", Columns: Rent591homeDPRDsRent591homeDPRDCsColumns, PrimaryKey: []*schema.Column{Rent591homeDPRDsRent591homeDPRDCsColumns[0], Rent591homeDPRDsRent591homeDPRDCsColumns[1]}, ForeignKeys: []*schema.ForeignKey{ { Symbol: "rent591home_d_p_r_ds_rent591home_d_p_r_d_cs_rent591home_detail_position_round_data_id", Columns: []*schema.Column{Rent591homeDPRDsRent591homeDPRDCsColumns[0]}, RefColumns: []*schema.Column{Rent591homeDetailPositionRoundDataColumns[0]}, OnDelete: schema.Cascade, }, { Symbol: "rent591home_d_p_r_ds_rent591home_d_p_r_d_cs_rent591home_detail_position_round_data_children_id", Columns: []*schema.Column{Rent591homeDPRDsRent591homeDPRDCsColumns[1]}, RefColumns: []*schema.Column{Rent591homeDetailPositionRoundDataChildrensColumns[0]}, OnDelete: schema.Cascade, }, }, } // Rent591homeDetailTagRent591homeDetailsColumns holds the columns for the "rent591home_detail_tag_rent591home_details" table. Rent591homeDetailTagRent591homeDetailsColumns = []*schema.Column{ {Name: "rent591home_detail_tag_id", Type: field.TypeInt}, {Name: "rent591home_detail_id", Type: field.TypeInt}, } // Rent591homeDetailTagRent591homeDetailsTable holds the schema information for the "rent591home_detail_tag_rent591home_details" table. Rent591homeDetailTagRent591homeDetailsTable = &schema.Table{ Name: "rent591home_detail_tag_rent591home_details", Columns: Rent591homeDetailTagRent591homeDetailsColumns, PrimaryKey: []*schema.Column{Rent591homeDetailTagRent591homeDetailsColumns[0], Rent591homeDetailTagRent591homeDetailsColumns[1]}, ForeignKeys: []*schema.ForeignKey{ { Symbol: "rent591home_detail_tag_rent591home_details_rent591home_detail_tag_id", Columns: []*schema.Column{Rent591homeDetailTagRent591homeDetailsColumns[0]}, RefColumns: []*schema.Column{Rent591homeDetailTagsColumns[0]}, OnDelete: schema.Cascade, }, { Symbol: "rent591home_detail_tag_rent591home_details_rent591home_detail_id", Columns: []*schema.Column{Rent591homeDetailTagRent591homeDetailsColumns[1]}, RefColumns: []*schema.Column{Rent591homeDetailsColumns[0]}, OnDelete: schema.Cascade, }, }, } // Rent591homeTagRent591homesColumns holds the columns for the "rent591home_tag_rent591homes" table. Rent591homeTagRent591homesColumns = []*schema.Column{ {Name: "rent591home_tag_id", Type: field.TypeInt}, {Name: "rent591home_id", Type: field.TypeInt}, } // Rent591homeTagRent591homesTable holds the schema information for the "rent591home_tag_rent591homes" table. Rent591homeTagRent591homesTable = &schema.Table{ Name: "rent591home_tag_rent591homes", Columns: Rent591homeTagRent591homesColumns, PrimaryKey: []*schema.Column{Rent591homeTagRent591homesColumns[0], Rent591homeTagRent591homesColumns[1]}, ForeignKeys: []*schema.ForeignKey{ { Symbol: "rent591home_tag_rent591homes_rent591home_tag_id", Columns: []*schema.Column{Rent591homeTagRent591homesColumns[0]}, RefColumns: []*schema.Column{Rent591homeTagsColumns[0]}, OnDelete: schema.Cascade, }, { Symbol: "rent591home_tag_rent591homes_rent591home_id", Columns: []*schema.Column{Rent591homeTagRent591homesColumns[1]}, RefColumns: []*schema.Column{Rent591homesColumns[0]}, OnDelete: schema.Cascade, }, }, } // Tables holds all the tables in the schema. Tables = []*schema.Table{ Rent591homesTable, Rent591homeDetailsTable, Rent591homeDetailBreadcrumbsTable, Rent591homeDetailBrowsesTable, Rent591homeDetailInfosTable, Rent591homeDetailNavDataTable, Rent591homeDetailPositionRoundsTable, Rent591homeDetailPositionRoundDataTable, Rent591homeDetailPositionRoundDataChildrensTable, Rent591homeDetailPublishesTable, Rent591homeDetailShareInfosTable, Rent591homeDetailTagsTable, Rent591homeSurroundingsTable, Rent591homeTagsTable, Rent591homeDetailRent591homeDetailShareinfosTable, Rent591homeDetailRent591homeDetailBrowsesTable, Rent591homeDetailRent591homeDetailPublishsTable, Rent591homeDetailBreadcrumbRent591homeDetailsTable, Rent591homeDetailInfoRent591homeDetailsTable, Rent591homeDetailNavDataRent591homeDetailsTable, Rent591homeDPRRent591homeDPRDsTable, Rent591homeDPRDsRent591homeDPRDCsTable, Rent591homeDetailTagRent591homeDetailsTable, Rent591homeTagRent591homesTable, } )
Functions ¶
Types ¶
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
Schema is the API for creating, migrating and dropping a schema.
Click to show internal directories.
Click to hide internal directories.