瀏覽代碼

Add auto_prices table to schema

David Ginzberg 7 年之前
父節點
當前提交
fd0a34f6ba
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. 6
    0
      src/main/resources/schema-h2.sql

+ 6
- 0
src/main/resources/schema-h2.sql 查看文件

28
   PRIMARY KEY (ID)
28
   PRIMARY KEY (ID)
29
 );
29
 );
30
 
30
 
31
+CREATE TABLE auto_prices (
32
+  id INT PRIMARY KEY AUTO_INCREMENT,
33
+  car_id INT REFERENCES car(id),
34
+  package VARCHAR2(15) NOT NULL,
35
+  price NUMBER(10,2) NOT NULL CHECK(price > 0)
36
+);
31
 
37
 
32
 DROP SEQUENCE hibernate_sequence;
38
 DROP SEQUENCE hibernate_sequence;
33
 
39