1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/tests/schema.yml

55 lines
978 B
YAML

---
User:
actAs: [Timestampable]
columns:
id:
type: integer(4)
primary: true
autoincrement: true
username:
type: string(255)
password:
type: string(255)
Profile:
actAs: [Timestampable]
columns:
id:
type: integer(4)
primary: true
autoincrement: true
user_id:
type: integer(4)
contact_id:
type: integer(4)
first_name:
type: string(255)
last_name:
type: string(255)
relations:
User:
foreignType: one
Contact:
foreignType: one
Contact:
actAs: [Timestampable]
columns:
id:
type: integer(4)
primary: true
autoincrement: true
name:
type: string(255)
Phonenumber:
actAs: [Timestampable]
columns:
id:
type: integer(4)
primary: true
autoincrement: true
contact_id:
type: integer(4)
phone_number:
type: integer(4)
relations:
Contact:
foreignAlias: Phonenumbers