RestaurationFormulaires.sql 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. CREATE TABLE [dbo].[RestaurationFormulaires]
  2. (
  3. [Id] UNIQUEIDENTIFIER NOT NULL,
  4. [College_Id] INT NOT NULL,
  5. [Statut] NVARCHAR (50) NOT NULL,
  6. [NbDP_College] INT NOT NULL,
  7. [NbDP_Lycee] INT NULL,
  8. [NbDP_MatPrimPeri] INT NULL,
  9. [NbDP_Commensaux] INT NULL,
  10. [NbDP_ATC] INT NULL,
  11. [NbDP_AgentC] INT NULL,
  12. [Prix_Forfait5j] DECIMAL (18,2) NULL,
  13. [NbJours_Forfait5j] INT NULL,
  14. [Prix_Forfait4j] DECIMAL (18,2) NULL,
  15. [NbJours_Forfait4j] INT NULL,
  16. [Prix_Forfait3j] DECIMAL (18,2) NULL,
  17. [NbJours_Forfait3j] INT NULL,
  18. [Prix_Forfait2j] DECIMAL (18,2) NULL,
  19. [NbJours_Forfait2j] INT NULL,
  20. [Prix_Forfait1j] DECIMAL (18,2) NULL,
  21. [NbJours_Forfait1j] INT NULL,
  22. [Prix_Ticket] DECIMAL (18,2) NOT NULL,
  23. [Tarif_Pension] DECIMAL (18,2) NULL,
  24. [Prix_ATC] DECIMAL (18,2) NOT NULL,
  25. [Prix_AgentC] DECIMAL (18,2) NOT NULL,
  26. [Prix_Commensaux] DECIMAL (18,2) NULL,
  27. [Prix_EcolePeri] DECIMAL (18,2) NULL,
  28. [NbEleves_FondSocial] INT NULL,
  29. [Montant_FondSocial] DECIMAL (18,2) NULL,
  30. [NbEleves_Impayes] INT NULL,
  31. [Montant_Impayes] DECIMAL (18,2) NULL,
  32. [Date_AvisCA] DATETIME2 NULL,
  33. [Ind_Signature] BIT NOT NULL,
  34. CONSTRAINT [PK_RestaurationFormulaires] PRIMARY KEY CLUSTERED ([Id] ASC),
  35. CONSTRAINT [FK_RestaurationFormulairesColleges] FOREIGN KEY ([College_Id]) REFERENCES [dbo].[Colleges] ([Id])
  36. )
  37. GO
  38. CREATE NONCLUSTERED INDEX [IX_FK_RestaurationFormulairesCollege]
  39. ON [dbo].[RestaurationFormulaires]([College_Id] ASC);