Rajout de doctrine/orm
[zf2.biz/application_blanche.git] / vendor / doctrine / orm / tests / Doctrine / Tests / ORM / Tools / doctrine1schema / schema.yml
diff --git a/vendor/doctrine/orm/tests/Doctrine/Tests/ORM/Tools/doctrine1schema/schema.yml b/vendor/doctrine/orm/tests/Doctrine/Tests/ORM/Tools/doctrine1schema/schema.yml
new file mode 100644 (file)
index 0000000..efa24c7
--- /dev/null
@@ -0,0 +1,28 @@
+User:
+  tableName: users
+  columns:
+    username:
+      type: string(255)
+      length: 100
+      notnull: true
+      unique: true
+    password:
+      type: string(255)
+    clob: clob
+    test_alias as theAlias:
+      type: string(255)
+  indexes:
+    username:
+      fields: [username]
+      type: unique
+
+Profile:
+  columns:
+    first_name: string(255)
+    last_name: string(255)
+    user_id: integer
+  relations:
+    User:
+      onDelete: CASCADE
+      foreignType: one
+      type: one
\ No newline at end of file