Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- type: INNODB
- collate: utf8_czech_ci
- charset: utf8
- State:
- tableName: states
- columns:
- name:
- notnull: true
- type: string(150)
- shortcut: string(2)
- indexes:
- shortcut:
- type: unique
- fields: shortcut
- User:
- tableName: users
- actAs:
- QQC_Model_Template_Fulltext:
- type: user
- QQC_Model_Template_Authenticate:
- QQC_Model_Template_SoftDelete:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- name: updated
- type: timestamp
- Sluggable:
- unique: true
- fields: [nickname]
- canUpdate: false
- name: url
- columns:
- id_state: int(20)
- id_disabledBy: int(20)
- active:
- type: boolean
- default: false
- disabled:
- type: boolean
- default: false
- disableFor: string(250)
- email:
- type: string(250)
- notnull: true
- unique: true
- password: string(40)
- nickname:
- unique: true
- type: string(200)
- firmname: string(250)
- surname: string(250)
- quakenetAuth: string(100)
- activateCode: string(10)
- relations:
- State:
- class: State
- local: id_state
- foreign: id
- foreignKeyName: User_State
- foreignType: one
- foreignAlias: Players
- Roles:
- class: User_Role
- local: id_user
- foreign: id_role
- refClass: User_Has_Role
- foreignKeyName: User_Roles
- foreignAlias: Users
- Logins:
- class: User_Login_Location
- local: id
- foreign: id_user
- type: many
- onDelete: CASCADE
- foreignKeyName: User_Logins
- foreignAlias: User
- DisabledBy:
- class: User
- local: id_disabledBy
- foreign: id
- foreignKeyName: User_Disabled
- foreignType: one
- User_ChangePassword_Request:
- tableName: user_changepassword_requests
- actAs:
- QQC_Model_Template_IpAddress:
- QQC_Model_Template_UserAgent:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- name: updated
- type: timestamp
- columns:
- code:
- type: string(10)
- unique: true
- notnull: true
- id_user: int(20)
- used:
- type: boolean
- default: false
- relations:
- User:
- class: User
- local: id_user
- foreign: id
- foreignType: one
- foreignKeyName: ChangePasReq_user
- foreignAlias: ChangePasswordRequests
- User_Login_Location:
- tableName: user_login_locations
- actAs:
- QQC_Model_Template_UserAgent:
- QQC_Model_Template_IpAddress:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- disabled: true
- columns:
- id_user: int(20)
- result: boolean
- User_Role:
- tableName: user_roles
- actAs:
- SoftDelete:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- name: updated
- type: timestamp
- columns:
- name:
- type: string(100)
- notnull: true
- canHaveMembers:
- type: boolean
- default: false
- id_inherit: int(20)
- addForVisitor:
- type: boolean
- default: false
- addForRegistered:
- type: boolean
- default: false
- relations:
- Inherit:
- class: User_Role
- local: id_inherit
- foreign: id
- foreignKeyName: Role_Inherit
- foreignType: one
- User_Has_Role:
- tableName: user_has_roles
- columns:
- id_user: int(20)
- id_role: int(20)
- indexes:
- unique:
- type: unique
- fields: [id_user, id_role]
- User_Award:
- tableName: user_awards
- listeners: [ QQC_Model_Listener_Author ]
- actAs:
- SoftDelete:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- name: updated
- type: timestamp
- Sluggable:
- unique: true
- fields: [name]
- canUpdate: false
- name: url
- columns:
- id_author: int(20)
- id_acceptor: int(20)
- id_category: int(20)
- name:
- type: string(200)
- notnull: true
- description: string(3000)
- accepted:
- type: boolean
- default: false
- indexes:
- name:
- type: unique
- fields: [name]
- relations:
- Author:
- class: User
- local: id_author
- foreign: id
- foreignType: one
- foreignKeyName: UserAward_Author
- foreignAlias: CreatedAwards
- Acceptor:
- class: User
- local: id_acceptor
- foreign: id
- foreignType: one
- foreignKeyName: UserAward_Acceptor
- foreignAlias: AcceptedAwards
- Category:
- class: User_Award_Category
- local: id_category
- foreign: id
- foreignType: one
- foreignKeyName: UserAward_Category
- foreignAlias: Awards
- User_Award_Category:
- tableName: user_award_categories
- actAs:
- SoftDelete:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- name: updated
- type: timestamp
- columns:
- name:
- type: string(200)
- notnull: true
- active:
- type: boolean
- default: false
- description: string(3000)
- indexes:
- name:
- type: unique
- fields: [name]
- User_Has_User_Award:
- tableName: user_has_user_awards
- listeners: [ QQC_Model_Listener_Author ]
- actAs:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- disabled: true
- columns:
- id_user: int(20)
- id_award: int(20)
- id_author: int(20)
- relations:
- Author:
- class: User
- local: id_author
- foreign: id
- foreignType: one
- foreignKeyName: UserHasAward_Author
- foreignAlias: DelegateAwards
- User:
- class: User
- local: id_user
- foreign: id
- foreignType: one
- foreignKeyName: UserHasAward_User
- foreignAlias: HasAwards
- Award:
- class: User_Award
- local: id_award
- foreign: id
- foreignType: one
- foreignKeyName: UserHasAward_Award
- foreignAlias: HasUsers
- indexes:
- unique:
- type: unique
- fields: [id_user, id_award]
- Article:
- tableName: articles
- listeners: [ QQC_Model_Listener_Author ]
- actAs:
- QQC_Model_Template_Fulltext:
- type: article
- QQC_Model_Template_SoftDelete:
- Versionable:
- versionColumn: version
- className: Article_Version
- auditLog: true
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- name: updated
- type: timestamp
- Sluggable:
- unique: true
- fields: [title]
- canUpdate: false
- name: url
- columns:
- id_author: int(20)
- id_category: int(20)
- id_publisher: int(20)
- published: timestamp
- title:
- type: string(250)
- notnull: true
- perex:
- type: string(3000)
- notnull: true
- text: string(99999)
- countComments:
- type: int(20)
- default: 0
- avarageVoteFactor:
- type: decimal(10)
- scale: 2
- default: 0
- relations:
- Author:
- class: User
- local: id_author
- foreign: id
- foreignType: one
- foreignKeyName: Article_Author
- foreignAlias: Articles
- Publisher:
- class: User
- local: id_publisher
- foreign: id
- foreignType: one
- foreignKeyName: Article_Publisher
- foreignAlias: PublishedArticles
- Category:
- class: Category
- local: id_category
- foreign: id
- foreignType: one
- foreignKeyName: Article_Category
- foreignAlias: Articles
- Labels:
- class: Article_Has_Label
- local: id
- foreign: id_article
- foreignType: many
- foreignKeyName: Article_Labels
- foreignAlias: Articles
- Article_Has_Label:
- inheritance:
- extends: Entity_Has_Label
- type: column_aggregation
- keyField: type
- keyValue: Article
- columns:
- id_article: int(20)
- Label:
- tableName: labels
- listeners: [ QQC_Model_Listener_Author ]
- actAs:
- SoftDelete:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- disabled: true
- Sluggable:
- unique: true
- fields: [label]
- canUpdate: false
- name: url
- columns:
- label:
- type: string(100)
- notnull: true
- id_author: int(20)
- relations:
- Author:
- class: User
- local: id_author
- foreign: id
- type: one
- foreignKeyName: Label_Author
- foreignAlias: MyLabels
- Video:
- tableName: videos
- listeners: [ QQC_Model_Listener_Author ]
- actAs:
- SoftDelete:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- name: updated
- type: timestamp
- Sluggable:
- unique: true
- fields: [name]
- canUpdate: false
- name: url
- columns:
- name:
- type: string(250)
- notnull: true
- url: string(255)
- embed: string(3000)
- id_author: int(20)
- id_category: int(20)
- relations:
- Author:
- class: User
- local: id_author
- foreign: id
- type: one
- foreignKeyName: Video_Author
- foreignAlias: MyVideos
- Category:
- class: Video_Category
- local: id_category
- foreign: id
- type: one
- foreignKeyName: Video_Category
- foreignAlias: Videos
- Video_Category:
- tableName: video_category
- listeners: [ QQC_Model_Listener_Author ]
- actAs:
- SoftDelete:
- Sluggable:
- unique: true
- fields: [name]
- canUpdate: false
- name: url
- columns:
- id_author: int(20)
- name: string(50)
- active:
- type: boolean
- default: false
- description: string(3000)
- relations:
- Author:
- class: User
- local: id_author
- foreign: id
- type: one
- foreignKeyName: VideoCat_Author
- Video_Download_Url:
- tableName: video_download_url
- listeners: [ QQC_Model_Listener_Author ]
- columns:
- id_video: int(20)
- id_author: int(20)
- url: string(3000)
- death:
- type: boolean
- default: false
- relations:
- Author:
- class: User
- local: id_author
- foreign: id
- type: one
- foreignKeyName: VideoDownload_Author
- foreignAlias: MyVideoMirrors
- Video_User_Vote:
- tableName: video_user_votes
- listeners: [ QQC_Model_Listener_Author ]
- columns:
- id_video: int(20)
- id_author: int(20)
- id_value: int(20)
- relations:
- Author:
- class: User
- local: id_author
- foreign: id
- type: one
- foreignKeyName: VideoVote_Author
- foreignAlias: MyVotedVideos
- Vote_Value:
- tableName: vote_value
- columns:
- value: int(1)
- label: string(50)
- Article_Comment:
- inheritance:
- extends: Comment
- type: column_aggregation
- keyField: type
- keyValue: Article
- columns:
- id_article: int(20)
- Category:
- tableName: articleCategories
- actAs:
- SoftDelete:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- name: updated
- type: timestamp
- Sluggable:
- unique: true
- fields: [name]
- canUpdate: false
- name: url
- columns:
- name:
- type: string(250)
- notnull: true
- description: string(5000)
- Game:
- tableName: games
- actAs:
- SoftDelete:
- Sluggable:
- unique: true
- fields: [name]
- canUpdate: false
- name: url
- columns:
- name: string(200)
- shortcut: string(10)
- id_superAdmin: int(11)
- relations:
- Admin:
- class: User
- local: id_superAdmin
- foreign: id
- foreignType: one
- foreignKeyName: Game_Admin
- indexes:
- shortcut:
- type: unique
- fields: shortcut
- Clan:
- tableName: clans
- actAs:
- SoftDelete:
- Sluggable:
- unique: true
- fields: [name]
- canUpdate: false
- name: url
- columns:
- id_clanleader: int(22)
- name: string(200)
- tag: string(50)
- irc: string(100)
- www: string(250)
- description: string(3000)
- relations:
- Clanleader:
- class: User
- local: id_clanleader
- foreign: id
- foreignType: one
- foreignKeyName: Clan_Leader
- indexes:
- tag:
- type: unique
- fields: tag
- Clan_Squad:
- tableName: clanSquads
- columns:
- id_clan:
- type: int(20)
- notnull: true
- id_leader: int(20)
- id_game:
- type: int(20)
- notnull: true
- id_gametype:
- type: int(20)
- notnull: true
- name:
- type: string(200)
- notnull: true
- relations:
- Leader:
- class: User
- local: id_leader
- foreign: id
- foreignType: one
- foreignKeyName: Squad_Leader
- foreignKeyName: SquadsLeader
- Clan:
- class: Clan
- local: id_clan
- foreign: id
- foreignType: one
- foreignKeyName: Squad_Clan
- foreignKeyName: Squads
- Game:
- class: Game
- local: id_game
- foreign: id
- foreignType: one
- foreignKeyName: Squad_Game
- foreignKeyName: Squads
- GameType:
- class: Game_Type
- local: id_gametype
- foreign: id
- foreignType: one
- foreignKeyName: Squad_GameType
- foreignKeyName: Squads
- indexes:
- unique:
- type: unique
- fields: [id_clan, id_game, id_gametype]
- Clan_Squad_Players:
- tableName: clanSquadPlayers
- actAs:
- SoftDelete:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- name: updated
- type: timestamp
- columns:
- id_squad:
- type: int(20)
- notnull: true
- id_user:
- type: int(20)
- notnull: true
- active:
- type: boolean
- default: false
- relations:
- Player:
- class: User
- local: id_user
- foreign: id
- foreignType: one
- foreignKeyName: SquadPlayers_User
- foreignAlias: Squads
- Squad:
- class: Clan_Squad
- local: id_squad
- foreign: id
- foreignType: one
- foreignKeyName: SquadPlayers_Squad
- foreignAlias: Players
- indexes:
- unique:
- type: unique
- fields: [id_squad, id_user, deleted_at]
- Map:
- tableName: maps
- actAs:
- SoftDelete:
- Sluggable:
- unique: true
- fields: [name]
- canUpdate: false
- name: url
- columns:
- id_game: int(22)
- name: string(100)
- shortcut: string(20)
- hasImage:
- type: boolean
- default: false
- relations:
- game:
- class: Game
- local: id_game
- foreign: id
- foreignType: one
- foreignKeyName: Map_Game
- foreignAlias: Maps
- indexes:
- gameMap:
- type: unique
- fields: [id_game,name]
- shortcut:
- type: unique
- fields: [id_game, shortcut]
- Maplist:
- tableName: maplists
- listeners: [ QQC_Model_Listener_Author ]
- actAs:
- SoftDelete:
- Sluggable:
- unique: true
- fields: [name]
- canUpdate: false
- name: url
- columns:
- id_game: int(20)
- id_gameType: int(20)
- id_author: int(20)
- name: string(100)
- shortcut: string(20)
- relations:
- game:
- class: Game
- local: id_game
- foreign: id
- foreignType: one
- foreignKeyName: Maplist_Game
- foreignAlias: Maplists
- gametype:
- class: Game_Type
- local: id_gameType
- foreignType: one
- foreignKeyName: Maplist_GameType
- foreignAlias: Maplists
- Author:
- class: User
- local: id_author
- foreign: id
- foreignType: one
- foreignKeyName: Maplist_Author
- foreignAlias: Maplists
- Maps:
- refClass: Map_Maplist
- local: id_maplist
- foreign: id_map
- foreignKeyName: Maplist_Map
- foreignAlias: Maplists
- onDelete: CASCADE
- onUpdate: CASCADE
- Map_Maplist:
- tableName: mapsInMaplists
- columns:
- id_map: int(20)
- id_maplist: int(20)
- indexes:
- uniq:
- type: unique
- fields: [id_map, id_maplist]
- Game_Type:
- tableName: gameTypes
- columns:
- name: string(100)
- shortcut: string(20)
- Tournament:
- tableName: tournaments
- actAs:
- SoftDelete:
- Sluggable:
- unique: true
- fields: [name]
- canUpdate: false
- name: url
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- name: updated
- type: timestamp
- columns:
- id_superAdmin: int(20)
- id_game: int(20)
- id_gametype: int(20)
- id_article: int(20)
- id_maplist: int(20)
- start: timestamp
- checkin: timestamp
- name: string(250)
- relations:
- SuperAdmin:
- class: User
- local: id_superAdmin
- foreign: id
- foreignType: one
- foreignKeyName: Tourney_SuperAdmin
- Game:
- class: Game
- local: id_game
- foreign: id
- foreignType: one
- foreignKeyName: Tourney_Game
- foreignAlias: Tournaments
- GameType:
- class: Game_Type
- local: id_gametype
- foreign: id
- foreignType: one
- foreignKeyName: Tourney_GameType
- foreignAlias: Tournaments
- Article:
- class: Article
- local: id_article
- foreign: id
- foreignType: one
- foreignKeyName: Tourney_Article
- Maplist:
- class: Maplist
- local: id_maplist
- foreign: id
- foreignType: one
- foreignKeyName: Tourney_Maplist
- foreignAlias: Tournaments
- Admins:
- refclass: Tournament_Admins
- local: id_tournament
- foreign: id_user
- foreignKeyName: Tourney_Admins
- onDelete: CASCADE
- onUpdate: CASCADE
- Matches:
- class: Tournament_Match
- type: many
- local: id
- foreign: id_tournament
- foreignKeyName: Tourney_Matchs
- foreignAlias: Tournament
- onDelete: CASCADE
- onUpdate: CASCADE
- Tournament_Admins:
- tableName: tournamentAdmins
- columns:
- id_tournament: int(20)
- id_user: int(20)
- Tournament_Players:
- tableName: tournamentPlayers
- actAs:
- Timestampable:
- created:
- name: signed
- type: timestamp
- updated:
- name: updated
- type: timestamp
- columns:
- id_tournament: int(20)
- id_user: int(20)
- checked:
- type: boolean
- default: false
- checkinTime: timestamp
- relations:
- Player:
- class: User
- local: id_user
- foreign: id
- foreignType: one
- foreignKeyName: Players_User
- foreignAlias: Tournaments
- Tournament:
- class: Tournament
- local: id_tournament
- foreign: id
- foreignKeyName: Players_Tournament
- foreignAlias: Players
- Tournament_Match:
- tableName: tournamentMatch
- actAs:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- name: updated
- type: timestamp
- columns:
- id_tournament: int(20)
- Tournament_Match_Map:
- tableName: tournamentMatchMap
- actAs:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- name: updated
- type: timestamp
- columns:
- id_match: int(20)
- firstScore: int(10)
- secondScore: int(10)
- relations:
- Match:
- class: Tournament_Match
- local: id_match
- foreign: id
- foreignType: one
- foreignKeyName: Map_Match
- foreignAlias: Maps
- Poll:
- tableName: polls
- listeners: [ QQC_Model_Listener_Author ]
- actAs:
- SoftDelete:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- name: updated
- type: timestamp
- columns:
- id_author: int(20)
- question: string(250)
- active:
- type: boolean
- default: false
- allowForVisitors:
- type: boolean
- default: false
- top:
- type: boolean
- default: false
- relations:
- Author:
- class: User
- local: id_author
- foreign: id
- foreignType: one
- foreignKeyName: Polls_Author
- foreignAlias: Polls
- Options:
- class: Poll_Option
- local: id
- foreign: id_poll
- type: many
- foreignKeyName: Poll_Options
- foreignAlias: Poll
- Poll_Option:
- tableName: pollOptions
- actAs:
- SoftDelete:
- columns:
- id_poll: int(20)
- value:
- type: string(250)
- notnull: true
- votes:
- type: int
- default: 0
- Poll_User_Vote:
- tableName: pollUserVotes
- actAs:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- disabled: true
- columns:
- id_user: int(20)
- id_option: int(20)
- relations:
- Author:
- class: User
- local: id_user
- foreign: id
- foreignType: one
- foreignKeyName: Vote_User
- foreignAlias: PollVotes
- Option:
- class: Poll_Option
- local: id_option
- foreign: id
- foreignType: one
- foreignKeyName: Vote_Option
- foreignAlias: Votes
- Web_Acl:
- tableName: web_acl
- columns:
- id_inherit: int(20)
- name: string(200)
- module: string(100)
- controller: string(100)
- action: string(100)
- resource: string(100)
- relations:
- Inherit:
- class: Web_Acl
- local: id_inherit
- foreign: id
- foreignKeyName: WebAcl_Inherit
- foreignType: one
- Web_Acl_Settings:
- tableName: web_acl_settings
- columns:
- id_acl: int(20)
- id_role: int(20)
- allow:
- type: boolean
- default: false
- relations:
- Role:
- class: User_Role
- local: id_role
- foreign: id
- foreignType: One
- foreignKeyName: AclSettings_Role
- foreignAlias: AclSettings
- Acl:
- class: Web_Acl
- local: id_Acl
- foreign: id
- foreignType: One
- foreignKeyName: AclSettings_Acl
- foreignAlias: AclSettings
- # ============================ BASE CLASSES ==========================
- Entity_Has_Label:
- tableName: entity_has_label
- actAs:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- disabled: true
- columns:
- type:
- type: string(10)
- fixed: true
- notnull: true
- id_label:
- type: int(20)
- notnull: true
- id_author:
- type: int(20)
- notnull: true
- relations:
- Author:
- class: User
- local: id_author
- foreign: id
- type: one
- foreignKeyName: Entity_Label_Author
- foreignAlias: MyAddedLabels
- Label:
- class: Label
- local: id_label
- foreign: id
- foreignType: many
- foreignKeyName: EntityLabel_Label
- foreignAlias: Entities
- indexes:
- typeIdx:
- fields: [type]
- Comment:
- tableName: comments
- listeners: [ QQC_Model_Listener_Author ]
- actAs:
- QQC_Model_Template_Fulltext:
- type: comment
- QQC_Model_Template_IpAddress:
- QQC_Model_Template_UserAgent:
- QQC_Model_Template_SoftDelete:
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- disabled: true
- NestedSet:
- hasManyRoots: true
- rootColumnName: id_root
- columns:
- type:
- type: string(10)
- fixed: true
- notnull: true
- id_author: int(20)
- nickname: string(100)
- plus:
- type: int
- default: 0
- minus:
- type: int
- default: 0
- spam:
- type: int
- default: 0
- text:
- type: string(3000)
- notnull: true
- relations:
- Author:
- class: User
- local: id_author
- foreign: id
- foreignType: many
- foreignKeyName: Comment_Author
- foreignAlias: Comments
- Article:
- class: Article
- local: id_article
- foreign: id
- foreignType: many
- foreignKeyName: Comment_Article
- foreignAlias: Comments
- indexes:
- typeIdx:
- fields: [type]
- Feedback:
- tableName: feedbacks
- actAs:
- SoftDelete:
- QQC_Model_Template_IpAddress:
- QQC_Model_Template_UserAgent:
- QQC_Model_Template_Author:
- notnull: false
- foreignKeyName: Feedback_Author
- foreignAlias: Feedbacks
- Timestampable:
- created:
- name: created
- type: timestamp
- updated:
- disabled: true
- columns:
- author: string(30)
- text: string(3000)
- url: string(255)
- Rating:
- tableName: ratings
- columns:
- type:
- type: string(10)
- fixed: true
- notnull: true
- id_author: int(20)
- nickname: string(100)
- grade:
- type: int(20)
- notnull: true
- relations:
- Author:
- class: User
- local: id_author
- foreign: id
- foreignType: many
- foreignKeyName: Rating_Author
- foreignAlias: Ratings
- Vote_Value:
- class: Vote_Value
- local: id
- foreign: id
- foreignType: many
- foreignKeyName: Rating_Vote
- foreignAlias: Ratings
- indexes:
- typeIdx:
- fields: [type]
- Article_Vote:
- inheritance:
- extends: Vote
- type: column_aggregation
- keyField: type
- keyValue: Article
- Video_Vote:
- inheritance:
- extends: Vote
- type: column_aggregation
- keyField: type
- keyValue: Video
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement