Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- type: INNODB
- collate: utf8_czech_ci
- charset: utf8
- Article:
- tableName: article
- actAs: [Timestampable]
- columns:
- id_category: int(20)
- id_author:
- type: int(20)
- notnull: true
- id_game: int(20)
- title:
- type: string(250)
- notnull: true
- text: string(99999)
- published:
- type: boolean
- default: true
- relations:
- Author:
- type: one
- class: User
- local: id_author
- foreign: id
- foreignType: many
- foreignKeyName: Article_Author
- foreignAlias: Articles
- onDelete: RESTRICT
- onUpdate: CASCADE
- Game:
- type: one
- class: Game
- local: id_game
- foreign: id
- foreignType: many
- foreignKeyName: Article_Game
- foreignAlias: Articles
- onDelete: RESTRICT
- onUpdate: CASCADE
- Category:
- type: one
- class: Category
- local: id_category
- foreign: id
- foreignType: many
- foreignKeyName: Article_Category
- foreignAlias: Articles
- onDelete: RESTRICT
- onUpdate: CASCADE
- Comment:
- tableName: comment
- actAs:
- Timestampable:
- created:
- name: created_at
- type: timestamp
- updated:
- disabled: true
- columns:
- id_article: int(20)
- id_author: int(20)
- text: string(99999)
- status:
- type: boolean
- default: true
- relations:
- Author:
- type: one
- class: User
- local: id_author
- foreign: id
- foreignType: many
- foreignKeyName: Comment_Author
- foreignAlias: Comments
- onDelete: CASCADE
- onUpdate: CASCADE
- Article:
- type: one
- class: Article
- local: id_article
- foreign: id
- foreignType: many
- foreignKeyName: Comment_Article
- foreignAlias: Comments
- onDelete: CASCADE
- onUpdate: CASCADE
- Category:
- tableName: category
- columns:
- title:
- type: string(250)
- notnull: true
- description:
- type: string(99999)
- notnull: true
- User:
- tableName: user
- actAs:
- Timestampable:
- created:
- name: created_at
- type: timestamp
- updated:
- disabled: true
- columns:
- id_role: int(20)
- username:
- type: string(100)
- notnull: true
- firstname:
- type: string(100)
- notnull: true
- lastname:
- type: string(100)
- notnull: true
- email:
- type: string(100)
- notnull: true
- password:
- type: string(40)
- notnull: true
- avatar: string(200)
- activated:
- type: boolean
- default: false
- url:
- type: string(100)
- relations:
- Role:
- type: one
- class: Role
- local: id_role
- foreign: id
- foreignType: many
- foreignKeyName: User_Role
- foreignAlias: Users
- onDelete: RESTRICT
- onUpdate: CASCADE
- Games:
- class: Game
- local: id_user
- foreign: id_game
- foreignKeyName: User_Game
- foreignAlias: Users
- refClass: Game_User
- FriendsRequestFromMe:
- class: User
- local: id_sender
- foreign: id_receiver
- foreignKeyName: User_Friend_Request
- foreignAlias: FriendsRequestToMe
- refClass: Friend_User_Request
- Clan_Request:
- tableName: clan_request
- actAs:
- Timestampable:
- created:
- name: created_at
- type: timestamp
- updated:
- disabled: true
- columns:
- id_sender: int(20)
- id_clan: int(20)
- accepted:
- type: boolean
- default: null
- relations:
- Clan:
- type: one
- class: Clan
- local: id_clan
- foreign: id
- foreignType: many
- foreignKeyName: Clan_Request_Clan
- foreignAlias: Clan_Requests
- onDelete: CASCADE
- onUpdate: CASCADE
- User:
- type: one
- class: User
- local: id_sender
- foreign: id
- foreignType: one
- foreignKeyName: Clan_Request_User
- foreignAlias: Clan_Requests
- onDelete: CASCADE
- onUpdate: CASCADE
- indexes:
- clan:
- fields: [id_sender, id_clan]
- type: unique
- Friend_User_Request:
- tableName: friend_user_request
- actAs: [Timestampable]
- columns:
- id_sender: int(20)
- id_receiver: int(20)
- accepted:
- type: boolean
- default: null
- relations:
- Sender:
- class: User
- local: id_sender
- foreign: id
- foreignAlias: FriendUserSenderRequests
- foreignKeyName: FriendUserRequests_Sender
- onDelete: CASCADE
- onUpdate: CASCADE
- Receiver:
- class: User
- local: id_receiver
- foreign: id
- foreignAlias: FriendUserReceiverRequests
- foreignKeyName: FriendUserRequests_Receiver
- onDelete: CASCADE
- onUpdate: CASCADE
- indexes:
- friend:
- fields: [id_sender, id_receiver]
- type: unique
- Game_User:
- tableName: game_user
- columns:
- id_game: int(20)
- id_user: int(20)
- relations:
- Game:
- local: id_game
- foreign: id
- foreignAlias: GameUsers
- foreignKeyName: GameUsers_Game
- onDelete: RESTRICT
- onUpdate: CASCADE
- User:
- local: id_user
- foreign: id
- foreignAlias: GameUsers
- foreignKeyName: GameUsers_User
- onDelete: CASCADE
- onUpdate: CASCADE
- Role:
- tableName: role
- columns:
- name: string(200)
- Clan:
- tableName: clan
- actAs:
- Timestampable:
- created:
- name: created_at
- type: timestamp
- updated:
- disabled: true
- columns:
- id_leader:
- type: int(20)
- notnull: true
- name:
- type: string(100)
- notnull: true
- description: string()
- logo: string(200)
- tag:
- type: string(10)
- notnull: true
- relations:
- Leader:
- type: one
- class: User
- local: id_leader
- foreign: id
- foreignType: one
- foreignKeyName: Clan_Leader
- foreignAlias: Clan
- onDelete: RESTRICT
- onUpdate: CASCADE
- Tournaments:
- local: id_clan
- foreign: id_tournament
- foreignKeyName: Clan_Tournament
- foreignAlias: Clans
- refClass: Tournament_Clan
- Games:
- local: id_clan
- foreign: id_game
- foreignKeyName: Clan_Game
- foreignAlias: Clans
- refClass: Game_Clan
- Tournament_Clan:
- tableName: tournament_clan
- columns:
- id_tournament: int(20)
- id_clan: int(20)
- relations:
- Tournament:
- local: id_tournament
- foreign: id
- foreignAlias: TournamentClans
- foreignKeyName: TournamentClans_Tournament
- onDelete: RESTRICT
- onUpdate: CASCADE
- Clan:
- local: id_clan
- foreign: id
- foreignAlias: TournamentClans
- foreignKeyName: TournamentClans_Clan
- onDelete: RESTRICT
- onUpdate: CASCADE
- Game_Clan:
- tableName: game_clan
- columns:
- id_game: int(20)
- id_clan: int(20)
- relations:
- Game:
- local: id_game
- foreign: id
- foreignAlias: GameClans
- foreignKeyName: GameClans_Game
- onDelete: RESTRICT
- onUpdate: CASCADE
- Clan:
- local: id_clan
- foreign: id
- foreignAlias: GameClans
- foreignKeyName: GameClans_Clan
- onDelete: RESTRICT
- onUpdate: CASCADE
- Game:
- tableName: game
- columns:
- name:
- type: string(200)
- notnull: true
- description:
- type: string()
- Message:
- tableName: message
- actAs:
- Timestampable:
- created:
- name: created_at
- type: timestamp
- updated:
- disabled: true
- SoftDelete:
- columns:
- id_sender:
- type: int(20)
- notnull: true
- id_receiver:
- type: int(20)
- notnull: true
- title:
- type: string(200)
- notnull: true
- text:
- type: string()
- notnull: true
- relations:
- Sender:
- type: one
- class: User
- local: id_sender
- foreign: id
- foreignType: many
- foreignKeyName: Message_Sender
- foreignAlias: Messages
- onDelete: CASCADE
- onUpdate: CASCADE
- Receiver:
- type: one
- class: User
- local: id_receiver
- foreign: id
- foreignType: many
- foreignKeyName: Message_Receiver
- foreignAlias: Messages
- onDelete: CASCADE
- onUpdate: CASCADE
- indexes:
- deleted_at:
- fields: [deleted_at]
- Tournament:
- tableName: tournament
- actAs: [Timestampable]
- columns:
- id_author: int(20)
- id_tournament_type:
- type: int(20)
- notnull: true
- id_game:
- type: int(20)
- notnull: true
- title:
- type: string(200)
- notnull: true
- description:
- type: text
- notnull: true
- finished:
- type: boolean
- default: false
- opened:
- type: boolean
- default: true
- relations:
- Author:
- type: one
- class: User
- local: id_author
- foreign: id
- foreignType: many
- foreignKeyName: Tournament_Author
- foreignAlias: Tournaments
- onDelete: SET NULL
- onUpdate: CASCADE
- Tournament_Type:
- type: one
- class: Tournament_Type
- local: id_tournament_type
- foreign: id
- foreignType: many
- foreignKeyName: Tournament_Tournament_Type
- foreignAlias: Tournaments
- onDelete: RESTRICT
- onUpdate: CASCADE
- Game:
- type: one
- class: Game
- local: id_game
- foreign: id
- foreignType: many
- foreignKeyName: Tournament_Game
- foreignAlias: Tournaments
- onDelete: RESTRICT
- onUpdate: CASCADE
- Tournament_Type:
- tableName: tournament_type
- columns:
- name:
- type: string(200)
- notnull: true
- description:
- type: string()
- notnull: true
- Group:
- tableName: tournament_groups
- columns:
- id_tournament:
- type: int(20)
- notnull: true
- name:
- type: string(20)
- notnull: true
- relations:
- Tournament:
- type: one
- class: Tournament
- local: id_tournament
- foreign: id
- foreignType: many
- foreignKeyName: Group_Tournament
- foreignAlias: Groups
- onDelete: RESTRICT
- onUpdate: CASCADE
- Clans:
- local: id_group
- foreign: id_clan
- foreignKeyName: Group_Clan
- foreignAlias: Groups
- refClass: Clan_Group
- Clan_Group:
- tableName: clan_group
- columns:
- id_clan: int(20)
- id_group: int(20)
- relations:
- Clan:
- class: Clan
- local: id_clan
- foreign: id
- foreignAlias: ClanGroups
- foreignKeyName: ClanGroups_Clan
- onDelete: CASCADE
- onUpdate: CASCADE
- Group:
- class: Group
- local: id_group
- foreign: id
- foreignAlias: ClanGroups
- foreignKeyName: ClanGroups_Group
- onDelete: CASCADE
- onUpdate: CASCADE
- Match:
- tableName: tournament_match
- columns:
- id_group: int(20)
- id_clan_home:
- type: int(20)
- notnull: true
- id_clan_away:
- type: int(20)
- notnull: true
- gamedate:
- type: date
- notnull: true
- resultHome:
- type: int(20)
- notnull: true
- resultAway:
- type: int(20)
- notnull: true
- scoreHome:
- type: int(20)
- notnull: true
- scoreAway:
- type: int(20)
- notnull: true
- relations:
- Groups:
- type: one
- class: Group
- local: id_group
- foreign: id
- foreignType: many
- foreignKeyName: Match_Groups
- foreignAlias: Matches
- onDelete: RESTRICT
- onUpdate: CASCADE
- ClanHome:
- type: one
- class: Clan
- local: id_clan_home
- foreign: id
- foreignType: many
- foreignKeyName: Match_HomeClans
- foreignAlias: Matches
- onDelete: CASCADE
- onUpdate: CASCADE
- ClanAway:
- type: one
- class: Clan
- local: id_clan_away
- foreign: id
- foreignType: many
- foreignKeyName: Match_AwayClans
- foreignAlias: Matches
- onDelete: CASCADE
- onUpdate: CASCADE
Add Comment
Please, Sign In to add comment