Skip to content

Instantly share code, notes, and snippets.

@leonguyen
Last active December 23, 2015 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leonguyen/6701457 to your computer and use it in GitHub Desktop.
Save leonguyen/6701457 to your computer and use it in GitHub Desktop.
CI Lab: User YAML mapping files
Entities\User:
type: entity
table: user
uniqueConstraints:
email_index:
columns:
- email
fields:
id:
type: integer
id: true
generator:
strategy: AUTO
password:
type: string
length: 32
nullable: false
firstName:
type: string
length: 255
nullable: false
column: first_name
lastName:
type: string
length: 255
nullable: false
column: last_name
email:
type: string
length: 255
nullable: false
website:
type: string
length: 255
nullable: true
created:
type: datetime
nullable: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment