Repository files navigation DATA MODELS AND DATABASE MANAGEMENT SYSTEMS
User authorization. Roles USER, SALES, PM, ADMIN
User Management (CRUD).
The role system.
Logging user actions.
Issue CRUD (USER)
Worklog CRUD (USER)
Projects CRUD (SALES)
Departments CRUD (Admin)
Project statistics (PM)
Issues-scope system
"worklog"
"id" BIGINT NOT NULL, PK
"authorId" BIGINT NOT NULL, -> user
"timeSpent" BIGINT NOT NULL,
"issueId" BIGINT NOT NULL,
"createdAt" DATE,
"updatedAt" DATE
"account"
"id" BIGINT NOT NULL, PK
"title" TEXT NOT NULL,
"type" VARCHAR(255),
"key" TEXT NULL,
"createdAt" DATE,
"updatedAt" DATE
"project"
"id" BIGINT NOT NULL, PK
"key" TEXT NOT NULL,
"name" TEXT NOT NULL,
"leadId" BIGINT NULL, -> user
"accountId" BIGINT NULL, -> account
"departmentId" BIGINT NULL, -> department
"createdAt" DATE,
"updatedAt" DATE
"employee_role"
"id" BIGINT NOT NULL, PK
"departmentId" BIGINT NULL, -> department
"name" TEXT NOT NULL,
"createdAt" DATE,
"updatedAt" DATE
"issue"
"id" BIGINT NOT NULL, PK
"type" VARCHAR(255),
"versionId" BIGINT NOT NULL, -> version
"description" TEXT NULL,
"status" VARCHAR(255),
"createdAt" DATE,
"updatedAt" DATE
"department"
"id" BIGINT NOT NULL, PK
"leadId" BIGINT NOT NULL, -> user
"createdAt" DATE,
"updatedAt" DATE
"user"
"id" BIGINT NOT NULL, PK
"name" TEXT NOT NULL,
"key" TEXT NOT NULL,
"email" TEXT NOT NULL,
"departmentId" BIGINT NULL, -> department
"roleId" BIGINT NOT NULL -> employee_role
"createdAt" DATE,
"updatedAt" DATE
"version"
"id" BIGINT NOT NULL, PK
"title" TEXT NOT NULL,
"isArchived" BOOLEAN NOT NULL DEFAULT '0',
"isReleased" BOOLEAN NOT NULL DEFAULT '0',
"projectId" BIGINT NOT NULL, -> project
"startDate" DATE,
"releaseDate" DATE,
"createdAt" DATE,
"updatedAt" DATE
"user_activity"
"id" BIGINT NOT NULL, PK
"userId" BIGINT NOT NULL, -> user
"activityType" VARCHAR(255),
"createdAt" DATE,
"updatedAt" DATE
"project_sales_users"
"id" BIGINT NOT NULL, PK
"projectId" BIGINT NOT NULL -> project
"userId" BIGINT NOT NULL -> user
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.