File size: 393 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
/* eslint-disable camelcase */
exports.shorthands = undefined;
exports.up = (pgm) => {
pgm.sql(`
CREATE TABLE users(
id SERIAL PRIMARY KEY,
name VARCHAR(250) NOT NULL,
email VARCHAR(40) NOT NULL UNIQUE,
password VARCHAR NOT NULL,
phone VARCHAR(15) UNIQUE
);
`);
};
exports.down = (pgm) => {
pgm.sql(`
DROP TABLE users;
`);
};
|