1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| # config/doctrine/schema.yml
eureka_gbClient:
actAs: { Timestampable: ~ }
columns:
nom_client: { type: string(100), notnull: true, unique: true }
lien_client: { type: string(100), notnull: true, unique: true }
eureka_gbAlbum:
actAs: { Timestampable: ~ }
columns:
id_client: { type: integer, notnull: true}
nom_album: { type: string(100), notnull: true, unique: true }
relations:
eureka_gbClient: { onDelete: CASCADE, onUpdate: CASCADE, local: id_client, foreign: id, foreignAlias: eureka_gbAlbum }
eureka_gbPositon:
actAs: { Timestampable: ~ }
columns:
nom_position: { type: string(10), notnull: true, unique: true }
eureka_gbPhoto:
actAs: { Timestampable: ~ }
columns:
id_position: { type: integer, notnull: true}
id_album: { type: integer, notnull: true}
url_photo: { type: string(500), notnull: true}
relations:
eureka_gbPosition: { onDelete: CASCADE, onUpdate: CASCADE, local: id_position, foreign: id, foreignAlias: eureka_gbPhoto }
eureka_gbAlbum: { onDelete: CASCADE, onUpdate: CASCADE, local: id_album, foreign: id, foreignAlias: eureka_gbPhoto } |
Partager