23 lines
442 B
MySQL
23 lines
442 B
MySQL
|
|
||
|
-- AccessLevel : --
|
||
|
-- 1 : root --
|
||
|
-- 2 : acheteur --
|
||
|
-- 4 : magazinier --
|
||
|
-- 8 : guest (read-only) --
|
||
|
|
||
|
-- Category : --
|
||
|
-- 1 : acheteur --
|
||
|
-- 2 : magazinier --
|
||
|
-- 4 : none --
|
||
|
|
||
|
CREATE TABLE Users (
|
||
|
login varchar(32) NOT NULL,
|
||
|
pass varchar(250) NOT NULL,
|
||
|
accesslevel int NOT NULL,
|
||
|
category varchar(4) NOT NULL,
|
||
|
idcat int
|
||
|
);
|
||
|
|
||
|
ALTER TABLE Users ADD PRIMARY KEY (login);
|
||
|
|