Development

#3124: schema.yml

You must first sign up to be able to contribute.

Ticket #3124: schema.yml

File schema.yml, 0.9 kB (added by svewap, 10 months ago)

example yml schema

Line 
1 propel:
2   _attributes:
3     package: lib.model
4   company:
5     _attributes: { idMethod: native }
6     id: { type: INTEGER, required: 'true', autoIncrement: 'true', primaryKey: 'true' }
7     name: { type: VARCHAR, size: 100, default: '' }
8     phone1: { type: VARCHAR, size: 30, default: '' }
9     phone2: { type: VARCHAR, size: 30, default: '' }
10     fax: { type: VARCHAR, size: 30, default: '' }
11     address1: { type: VARCHAR, size: 50, default: '' }
12     address2: { type: VARCHAR, size: 50, default: '' }
13     city: { type: VARCHAR, size: 30, default: '' }
14     state: { type: VARCHAR, size: 30, default: '' }
15     zip: { type: VARCHAR, size: 11, default: '' }
16     url: { type: VARCHAR, size: 255 }
17     description: { type: LONGVARCHAR, required: 'true' }
18     type: { type: INTEGER, required: 'true', default: 0 }
19     email: { type: VARCHAR, size: 255 }
20     custom: { type: LONGVARCHAR }
21     created_at: { type: TIMESTAMP }
22     updated_at: { type: TIMESTAMP }
23